UNPKG

@localsecurity/name-id

Version:

A utility to create and parse lexicographically sortable ID's with embeded model names and created timestamp

52 lines (51 loc) 1.83 kB
{ "name": "@localsecurity/name-id", "version": "1.1.0", "description": "A utility to create and parse lexicographically sortable ID's with embeded model names and created timestamp", "author": "Adam Power (Developer Light Certified ;)", "license": "MIT", "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { "build": "tsc", "bundle": "npm run build:esm", "build:esm": "esbuild src/index.ts --bundle --format=esm --platform=neutral --target=es2020 --outfile=lib/index.esm.js", "release:major": "npm version $(semver $npm_package_version -i major) && npm publish --access public --tag latest", "release:minor": "npm version $(semver $npm_package_version -i minor) && npm publish --access public --tag latest", "release:patch": "npm version $(semver $npm_package_version -i patch) && npm publish --access public --tag latest", "release:beta": "npm version $(semver $npm_package_version -i prerelease --preid $(npm whoami) ) && npm publish --access public --tag beta", "release": "npm run release:beta", "lint": "eslint 'src/**/*.ts'", "format": "prettier --write \"src/**/*.ts\"", "prepare": "npm run build && npm run format && npm run bundle" }, "keywords": [ "LocalSecurity", "nameid", "sortable-id", "uuid", "dynamodb", "durable-objects", "cloudflare", "primary-key" ], "exports": { ".": { "types": "./lib/index.d.ts", "import": "./lib/index.js", "require": "./lib/index.js" } }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.37.0", "@typescript-eslint/parser": "^8.37.0", "esbuild": "^0.25.5", "eslint": "^9.31.0", "prettier": "^3.6.2", "semver": "^7.7.2", "typescript": "^5.8.3" }, "dependencies": { "@localsecurity/types": "^0.0.1" } }