get-short-id
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -1,2 +0,2 @@ | ||
const {nanoid} = require('nanoid'); | ||
const {customAlphabet} = require('nanoid'); | ||
@@ -8,5 +8,5 @@ function getId(prefix, chars) { | ||
// https://zelark.github.io/nano-id-cc/ | ||
return prefix + nanoid(chars, 24); | ||
return prefix + (customAlphabet(chars, 24)()); | ||
} | ||
module.exports = getId; |
{ | ||
"name": "get-short-id", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Random ID generator function with options to provide prefix and character set. Uses nanoid(23) as random string source.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5542
4