emoji-uid

1.0.3Β β€’Β PublicΒ β€’Β Published

πŸ’―πŸ’œπŸŽ‰

This package is probably not a safe way to generate IDs in production

This package generates unique identifiers, but the identifiers are a string of emoji.

import getId from 'emoji-uid'

const id = getId();
// id of πŸ’―πŸ’œπŸŽ‰ or similar

If you want to specify the ID length, you can provide that as an argument:

import getId from 'emoji-uid'

const id = getId(5);
// id of πŸ’―πŸ’œπŸŽ‰πŸ³οΈβ€πŸŒˆπŸ”‘ or similar

This library includes 858 emojis, or more than 631 million possible unique ids,

Some emojis have been removed from the set for not working on my machine, implying negative sentiment, or my personal preference.

This project inspired by human-readable-ids, but with more troll.

Readme

Keywords

none

Package Sidebar

Install

npm i emoji-uid

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

115 kB

Total Files

8

Last publish

Collaborators

  • noviny