Shorten MongoDb ObjectId
Heavily based on https://github.com/treygriffith/short-mongo-id
But without external node dependencies.
Suit for node
and browser
.
Install
npm install --save shrink-mongo-id
Usage
const shortid = ;const shortnd = ;console; // => 'ahGw2K'