uid-promise
Version:
generates a cryptographically strong random uid
47 lines (46 loc) • 1.23 kB
JSON
{
"name": "uid-promise",
"version": "2.0.5",
"license": "MIT",
"description": "generates a cryptographically strong random uid",
"repository": "vercel/uid-promise",
"types": "lib/types/index.d.ts",
"packageManager": "pnpm@8.5.1",
"engines": {
"node": ">=16"
},
"files": [
"lib"
],
"exports": {
".": {
"types": "./lib/types/index.d.ts",
"browser": "./lib/esm/index.browser.js",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js"
},
"./browser": {
"types": "./lib/types/index.d.ts",
"default": "./lib/esm/index.browser.js"
}
},
"scripts": {
"build": "pnpm build:cjs && pnpm build:esm",
"build:cjs": "tsc",
"build:esm": "tsc --module esnext --outDir ./lib/esm && echo '{ \"type\": \"module\" }' > ./lib/esm/package.json",
"test": "pnpm test:cjs && pnpm test:esm",
"test:cjs": "pnpm build:cjs && node --test test/test.js",
"test:esm": "pnpm build:esm && node --test test/test-esm.mjs"
},
"devDependencies": {
"@types/node": "20.1.3",
"prettier": "2.3.2",
"test": "3.3.0",
"typescript": "4.9.5"
},
"prettier": {
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
}