Socket
Socket
Sign inDemoInstall

mnemonic-id

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mnemonic-id - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc