mnemonic-id
Advanced tools
Comparing version 3.2.0 to 3.2.1
{ | ||
"name": "mnemonic-id", | ||
"description": "Library to generate easy to remember, and sometimes entertaining, human readable ids", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Mattias E. O. Andersson", |
@@ -7,3 +7,3 @@ # Mnemonic id | ||
Library to generate easy to remember, and sometimes entertaining, human readable ids. | ||
``` | ||
```js | ||
createStoryId(); // -> awesome-chipmunk-banish-evil-rat | ||
@@ -23,3 +23,3 @@ ``` | ||
``` | ||
```console | ||
$ npm install mnemonic-id | ||
@@ -32,11 +32,11 @@ ``` | ||
Import in either way that suits your environment: | ||
``` | ||
```js | ||
import { createNameId } from 'mnemonic-id'; | ||
createNameId(); | ||
``` | ||
``` | ||
```js | ||
import * as mnemonicId from 'mnemonic-id'; | ||
mnemonicId.createNameId(); | ||
``` | ||
``` | ||
```js | ||
const mnemonicId = require('mnemonic-id'); | ||
@@ -48,3 +48,3 @@ mnemonicId.createNameId(); | ||
``` | ||
```js | ||
/** Format "noun", ≈ 10^2 permutations, 10 max length */ | ||
@@ -79,3 +79,3 @@ createNounId(); // -> narwhal | ||
Or customize your own: | ||
``` | ||
```js | ||
createCustomId({ | ||
@@ -95,3 +95,3 @@ adjectives: 2, | ||
``` | ||
```js | ||
createNameId({ | ||
@@ -98,0 +98,0 @@ adjectives: 3, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19996