-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb698ec
commit 6376958
Showing
5 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
# Installation | ||
|
||
Can be managed using | ||
[jspm](http://jspm.io) | ||
or [npm](https://github.com/npm/npm). | ||
[yarn](https://yarnpkg.com/en/docs), | ||
[npm](https://docs.npmjs.com), | ||
or [jspm](https://jspm.org/docs). | ||
|
||
### jspm | ||
|
||
### yarn | ||
```terminal | ||
jspm install npm:@combinatorics/permutation | ||
yarn add @combinatorics/permutation | ||
``` | ||
|
||
### npm | ||
```terminal | ||
npm install @combinatorics/permutation --save | ||
``` | ||
|
||
### jspm | ||
```terminal | ||
jspm install npm:@combinatorics/permutation | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
# Usage | ||
|
||
The code needs a ES2015+ polyfill to work, for example | ||
[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill). | ||
> :warning: Depending on your environment, the code may require | ||
> `regeneratorRuntime` to be defined, for instance by importing | ||
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime). | ||
First, require the polyfill at the entry point of your application | ||
```js | ||
await import( 'regenerator-runtime/runtime.js' ) ; | ||
await import('regenerator-runtime/runtime.js'); | ||
// or | ||
import 'regenerator-runtime/runtime.js' ; | ||
import 'regenerator-runtime/runtime.js'; | ||
``` | ||
|
||
Then | ||
Then, import the library where needed | ||
```js | ||
const permutation = await import( '@combinatorics/permutation' ) ; | ||
const permutation = await import('@combinatorics/permutation'); | ||
// or | ||
import * as permutation from '@combinatorics/permutation' ; | ||
import * as permutation from '@combinatorics/permutation'; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters