Skip to content

Conversation

@ai
Copy link
Contributor

@ai ai commented Oct 31, 2017

Hi. Thanks for an awesome project. I found the way how to make it a little better. By replacing unique ID generator from shortid to nanoid.

  1. shortid is not maintained anymore (and issue tracker has many important issues). I tried to took maintenance, but found that I can’t fix shortid with keeping API.
  2. nanoid is just 179 bytes. shortid is 2 times bigger (about 0.5 KB).
  3. nanoid is 10x times faster than shortid.

@jakezatecky I kept old ID size, everything will be the same for the user. I also run npm run example (not sure that I should update examples too).

@jakezatecky
Copy link
Owner

Thank you for providing a replacement.

@jakezatecky jakezatecky merged commit 1109faf into jakezatecky:master Oct 31, 2017
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