fp/packages/strapi/misc/generateCuid.js

7 lines
165 B
JavaScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
const { init } = require('@paralleldrive/cuid2');
module.exports = function() {
const length = 10;
const genCuid = init({ length });
return genCuid();
}