You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,48 @@ Base repo for JS project
3
3
4
4
## Installation
5
5
6
+
npm install boiler.js
7
+
6
8
7
9
## Usage
8
10
11
+
Once installed, add it to your project with common.js or ES6 syntax :
12
+
13
+
```js
14
+
constBoiler=require("boiler.js");
15
+
// or
16
+
importBoilerfrom"boiler.js";
17
+
```
18
+
19
+
Then, you can start to use it on your code :
20
+
21
+
```js
22
+
constboiler=newBoiler();
23
+
```
24
+
25
+
Since today's web browser don't support module requirements yet, you need to use a bundler like [webpack](https://webpack.js.org/) or [browserify](http://browserify.org/).
26
+
9
27
10
28
## CDN
11
29
30
+
If you want to go old-school, you can fetch the script with [unpkg](https://unpkg.com/) or [jsdelivr](https://www.jsdelivr.com/).
0 commit comments