You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
All: Use Lerna to manage monorepo
This commit is contained in:
13
packages/lib/uuid.ts
Normal file
13
packages/lib/uuid.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
const createUuidV4 = require('uuid/v4');
|
||||
const { customAlphabet } = require('nanoid/non-secure');
|
||||
|
||||
const nanoid = customAlphabet('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 22);
|
||||
|
||||
export default {
|
||||
create: function() {
|
||||
return createUuidV4().replace(/-/g, '');
|
||||
},
|
||||
createNano: function() {
|
||||
return nanoid();
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user