thinid

🚀📦 Easy way to create 🆔 unique ids.

Usage no npm install needed!

<script type="module">
  import thinid from 'https://cdn.skypack.dev/thinid';
</script>

README

thinid

🚀📦 Easy way to create 🆔 unique ids.

All Contributors Build Status npm npm david Hits-of-Code GitHub

ThinId creates lovely unique ids. Easy to use, support both JavaScript and TypeScript.

Installation

yarn add thinid
# or
npm install -s thinid

Usage

For ES6 or ESNext

import { thinid } from 'thinid';

For CommonJS

const { thinid } = require('thinid');
console.log(thinid());
Output should be '13b6-351b_fb04$14b8#8983'

API

thinid(length)

Returns string unique id with length option.

Example

thinid(9);
Output should be '9jw6-745b'

Contributors

Thanks goes to these wonderful people (emoji key):

Cuong Duy Nguyen
Cuong Duy Nguyen

💻 📖 ⚠️ 👀

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © 103cuong