chamesu
Version:
This package contains all packages of the chat application.
16 lines (12 loc) • 395 B
text/typescript
/*
* Copyright (c) 2021.
* Author Peter Placzek (tada5hi)
* For the full copyright and license information,
* view the LICENSE file that was distributed with this source code.
*/
import { customAlphabet } from 'nanoid';
const alphabet = '0123456789abcdefghijklmnopqrstuvwxyz';
const nanoid = customAlphabet(alphabet, 21);
export function createNanoID() : string {
return nanoid();
}