Noviny / emoji-uid

Get πŸ”₯ UIDs to help make things πŸ’―

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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.

About

Get πŸ”₯ UIDs to help make things πŸ’―


Languages

Language:JavaScript 100.0%