File tree 4 files changed +20
-11
lines changed
4 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 9
9
</p >
10
10
11
11
Randomness algorithms for JavaScript.
12
- See [ docs] ( https://randomized-algorithm.github.io/random ) .
12
+ See [ docs] ( https://randomized-algorithm.github.io/random/index.html ) .
13
13
Parent is [ js-algorithms] ( https://make-github-pseudonymous-again.github.io/js-algorithms ) .
14
14
15
15
> :warning : Depending on your environment, the code may require
Original file line number Diff line number Diff line change 1
1
# Installation
2
+
2
3
Can be managed using
3
- [ jspm] ( http://jspm.io )
4
- or [ npm] ( https://github.com/npm/npm ) .
4
+ [ yarn] ( https://yarnpkg.com/en/docs ) ,
5
+ [ npm] ( https://docs.npmjs.com ) ,
6
+ or [ jspm] ( https://jspm.org/docs ) .
5
7
6
- ### jspm
8
+
9
+ ### yarn
7
10
``` terminal
8
- jspm install npm: @randomized/random
11
+ yarn add @randomized/random
9
12
```
10
13
11
14
### npm
12
15
``` terminal
13
16
npm install @randomized/random --save
14
17
```
18
+
19
+ ### jspm
20
+ ``` terminal
21
+ jspm install npm:@randomized/random
22
+ ```
Original file line number Diff line number Diff line change 4
4
> ` regeneratorRuntime ` to be defined, for instance by importing
5
5
> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
6
6
7
+ First, require the polyfill at the entry point of your application
7
8
``` js
8
- await import ( ' regenerator-runtime/runtime.js' ) ;
9
+ await import (' regenerator-runtime/runtime.js' ) ;
9
10
// or
10
- import ' regenerator-runtime/runtime.js' ;
11
+ import ' regenerator-runtime/runtime.js' ;
11
12
```
12
13
13
- Then
14
+ Then, import the library where needed
14
15
``` js
15
- const { ... } = await import ( ' @randomized/random' ) ;
16
+ const { ... } = await import (' @randomized/random' ) ;
16
17
// or
17
- import { ... } from ' @randomized/random' ;
18
+ import { ... } from ' @randomized/random' ;
18
19
```
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const domReady = function (callback) {
10
10
domReady ( ( ) => {
11
11
const projectname = document . createElement ( 'a' ) ;
12
12
projectname . classList . add ( 'project-name' ) ;
13
- projectname . text = 'randomized/random' ;
13
+ projectname . text = '@ randomized/random' ;
14
14
projectname . href = './index.html' ;
15
15
16
16
const header = document . querySelector ( 'header' ) ;
You can’t perform that action at this time.
0 commit comments