quick-slugify
v1.0.5
Published
A simple utility that generates Google Meet-style meeting codes like `abc-def-ghi`. Perfect for creating room codes or short identifiers.
Maintainers
Readme
meeting-code-generator
A simple utility that generates Google Meet-style meeting codes like abc-def-ghi. Perfect for creating room codes or short identifiers.
🚀 Install
npm install quick-slugify✨ Usage
generateSlug(seperator)
separator (optional): The character used to separate the parts of the code.
- If no separator is provided, the default - is used.
- You can pass a custom character (e.g., _, ., or even an empty string "") to change how the parts of the code are separated.
const { generateSlug } = require('quick-slugify');
const meeting_id = generateMeetingCode();
//your code
generateSlug('_'); // "abc_def_ghi"
generateSlug('.'); // "abc.def.ghi"
generateSlug(''); // "abcdefghi" (no separator)