{ "name": "ulidx", "version": "2.1.0", "description": "ULID generator for NodeJS and the browser", "type": "module", "exports": { ".": { "types": "./dist/index.d.ts", "node": { "import": "./dist/node/index.js", "require": "./dist/node/index.cjs" }, "browser": { "import": "./dist/browser/index.js", "require": "./dist/browser/index.cjs" }, "worker": { "import": "./dist/browser/index.js", "require": "./dist/browser/index.cjs" } } }, "main": "dist/node/index.cjs", "module": "./dist/node/index.js", "browser": { "./dist/node/index.cjs": "./dist/browser/index.cjs", "./dist/node/index.js": "./dist/browser/index.js" }, "react-native": "./dist/browser/index.cjs", "types": "dist/index.d.ts", "scripts": { "bench": "npm run build && node test/benchmark.js", "build": "run-s clean build:node:cjs build:node:esm build:browser:cjs build:browser:esm build:types", "build:browser:cjs": "FMT=cjs ENV=browser rollup -c --name ulidx", "build:browser:esm": "FMT=esm ENV=browser rollup -c --name ulidx", "build:node:cjs": "FMT=cjs ENV=node rollup -c", "build:node:esm": "FMT=esm ENV=node rollup -c", "build:types": "tsc -p tsconfig.dec.json --emitDeclarationOnly", "clean": "rimraf dist", "format": "prettier --write \"{{source,test}/**/*.{js,ts},rollup.config.js}\"", "prepublishOnly": "npm run build", "test": "npm run build && npm run test:specs && npm run test:format", "test:format": "prettier --check \"{{source,test}/**/*.{js,ts},rollup.config.js}\"", "test:specs": "run-s test:node:esm test:node:cjs test:browser:cjs", "test:browser:cjs": "mochify ./test/browser-cjs/*.spec.cjs", "test:node:cjs": "c8 --src ./dist/node/index.cjs --check-coverage --lines 60 --functions 60 --branches 65 --statements 60 mocha -t 10000 'test/node-cjs/**/*.spec.cjs'", "test:node:esm": "c8 --src ./dist/node/index.js --check-coverage --lines 60 --functions 60 --branches 65 --statements 60 mocha -t 10000 'test/node-esm/**/*.spec.js'" }, "files": [ "dist/**/*" ], "lint-staged": { "{{source,test}/**/*.{js,ts},rollup.config.js}": [ "prettier --write" ] }, "engines": { "node": ">=16" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "repository": { "type": "git", "url": "git+https://github.com/perry-mitchell/ulidx.git" }, "keywords": [ "ulid", "uuid", "id", "generator", "guid" ], "author": "Perry Mitchell ", "license": "MIT", "bugs": { "url": "https://github.com/perry-mitchell/ulidx/issues" }, "homepage": "https://github.com/perry-mitchell/ulidx#readme", "devDependencies": { "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-commonjs": "^25.0.3", "@rollup/plugin-node-resolve": "^15.1.0", "@rollup/plugin-typescript": "^11.1.2", "@types/node": "^20.4.4", "benchmark": "^2.1.4", "c8": "^8.0.0", "chai": "^4.3.7", "husky": "^4.3.8", "lint-staged": "^13.2.3", "mocha": "^10.2.0", "mochify": "^9.2.0", "npm-run-all": "^4.1.5", "prettier": "^2.8.8", "rimraf": "^5.0.1", "rollup": "^3.26.3", "sinon": "^15.2.0", "tslib": "^2.6.0", "typescript": "^5.1.6" }, "dependencies": { "layerr": "^2.0.1" } }