@fidaktk/ids
Version:
A lightweight, dependency-efficient ID generator package for Node.js and web projects. Supports BSON `ObjectId` (compatible with MongoDB/Mongoose), UUIDv4/v5, CUID2, and URL-safe slug IDs.
55 lines (54 loc) • 1.19 kB
JSON
{
"name": "@fidaktk/ids",
"version": "1.0.12",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc && npm run build:cjs",
"build:cjs": "tsc --module CommonJS --outDir dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"test": "jest --config jest.config.mjs"
},
"keywords": [
"objectid",
"uuid",
"cuid",
"slugid",
"id",
"generator",
"mongodb"
],
"author": "Fida ur Rehman",
"license": "MIT",
"dependencies": {
"@paralleldrive/cuid2": "^2.2.2",
"@types/bson": "^4.0.5",
"bson": "^6.10.4",
"buffer": "^6.0.3",
"slugid": "^5.0.1",
"uuid": "^11.1.0"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^24.0.13",
"jest": "^30.0.4",
"ts-jest": "^29.4.0",
"typescript": "^5.4.5"
}
}