File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 5
5
Tape library for JavaScript. Served with asynchronous goodness.
6
6
See [ docs] ( https://async-abstraction.github.io/tape/index.html ) .
7
7
8
- > :warning : The code requires ` regeneratorRuntime ` to be defined, for instance by importing
8
+ > :warning : Depending on your environment, the code may require
9
+ > ` regeneratorRuntime ` to be defined, for instance by importing
9
10
> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
10
11
11
12
``` js
Original file line number Diff line number Diff line change 1
1
# Usage
2
2
3
- > :warning : The code requires ` regeneratorRuntime ` to be defined, for instance by importing
3
+ > :warning : Depending on your environment, the code may require
4
+ > ` regeneratorRuntime ` to be defined, for instance by importing
4
5
> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
5
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
14
Then, import the library where needed
14
15
``` js
15
- const tape = await import ( ' @async-abstraction/tape' ) ;
16
+ const tape = await import (' @async-abstraction/tape' ) ;
16
17
// or
17
- import tape from ' @async-abstraction/tape' ;
18
+ import * as tape from ' @async-abstraction/tape' ;
18
19
```
Original file line number Diff line number Diff line change 6
6
"author" : " make-github-pseudonymous-again" ,
7
7
"homepage" : " https://async-abstraction.github.io/tape" ,
8
8
"repository" : {
9
- "type " : " git " ,
10
- "url " : " https://github.com/async-abstraction/tape "
9
+ "url " : " https://github.com/async-abstraction/tape " ,
10
+ "type " : " git "
11
11
},
12
12
"bugs" : {
13
13
"url" : " https://github.com/async-abstraction/tape/issues"
You can’t perform that action at this time.
0 commit comments