Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nanoid #971

Merged
merged 3 commits into from
Sep 26, 2019
Merged

Add nanoid #971

merged 3 commits into from
Sep 26, 2019

Conversation

florianb
Copy link
Contributor

https://github.com/ai/nanoid is an actively maintained id-generator which compares best to UUIDv4 (random-based id generation) which generates ids with a similar collision probability, but less size (21 symbols vs 36) and ~16% faster. It has security in mind (using crypts random number generator and providing a company-backed disclosure procedure.

It is very helpful at any point heavily relying on collision-free ids, like f.e. cassandra or couchdb document-ids.

I don't know if mad science is the best category.

By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖

⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆

Florian Breisch added 2 commits September 17, 2019 09:30
https://github.com/ai/nanoid is an actively maintained id-generator which compares best to UUIDv4 (random-based id generation) which generates ids with a similar collision probability, but less size (21 symbols vs 36) and ~16% faster. It has security in mind (using crypts random number generator and providing a company-backed disclosure procedure.

It is very helpful at any point heavily relying on collision-free ids, like f.e. cassandra or couchdb document-ids.

I don't know if mad science is the best category.
@sindresorhus
Copy link
Owner

It's not really mad science, but definitely useful.

@sindresorhus sindresorhus changed the title Add nanoid to mad-science Add nanoid Sep 23, 2019
@florianb
Copy link
Contributor Author

You're right, i'd propose then Text or Misc (even though the latter is already pretty stuffed).

@sindresorhus
Copy link
Owner

Text then

@florianb
Copy link
Contributor Author

Aye 🖖

@sindresorhus sindresorhus merged commit 984f728 into sindresorhus:master Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants