build: added nanoid package

This commit is contained in:
tycrek 2022-11-29 21:48:21 -07:00
parent 489b497c7d
commit e425425749
No known key found for this signature in database
GPG Key ID: FF8A54DCE404885A
3 changed files with 4 additions and 0 deletions

1
package-lock.json generated
View File

@ -32,6 +32,7 @@
"fs-extra": "^10.0.1",
"helmet": "^4.6.0",
"luxon": "^2.3.1",
"nanoid": "^3.3.4",
"node-fetch": "^2.6.7",
"node-vibrant": "^3.1.6",
"postcss-font-magician": "^3.0.0",

View File

@ -62,6 +62,7 @@
"fs-extra": "^10.0.1",
"helmet": "^4.6.0",
"luxon": "^2.3.1",
"nanoid": "^3.3.4",
"node-fetch": "^2.6.7",
"node-vibrant": "^3.1.6",
"postcss-font-magician": "^3.0.0",

2
src/generators/nanoid.ts Normal file
View File

@ -0,0 +1,2 @@
import { nanoid } from 'nanoid';
export default ({ length }: { length?: number }) => nanoid(length);