smaller-id

Easier zero-dependency ID generation in Node.js

Usage no npm install needed!

<script type="module">
  import smallerId from 'https://cdn.skypack.dev/smaller-id';
</script>

README

smaller-id

Easier ID generation in Node.js

Installation

We use yarn, but you can use your favourite package manager. yarn add smaller-id or npm i --save smaller-id

Usage

const id = require('smaller-id');
// Or
import id from 'smaller-id';

id();

API

id(length?: number, alphabet?: string): string;