Get started with shortid CDN
MIT licensed
The Shortid library generates unique, short, and random IDs in JS.
Tags:- short
- tiny
- id
- uuid
- bitly
- shorten
- mongoid
- shortid
- tinyid
Stable version
Copied!
How to start using shortid CDN
// Include the shortid library using the CDN link
const ShortId = require('shortid/lib/ShortId');
// Create a new instance of ShortId
const shortid = new ShortId();
// Generate a new short id
const newId = shortid.generate();
// Log the generated id to the console
console.log('New short id:', newId);
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!