UNPKG

hashids

Version:

Generate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.

124 lines (123 loc) 3.45 kB
{ "name": "hashids", "description": "Generate YouTube-like ids from numbers. Use Hashids when you do not want to expose your database ids to the user.", "keywords": [ "hashids", "hashid", "hash", "ids", "youtube", "bitly", "obfuscate", "encode", "decode", "encrypt", "decrypt" ], "homepage": "http://hashids.org/javascript", "bugs": { "url": "https://github.com/niieani/hashids.js/issues" }, "repository": { "type": "git", "url": "https://github.com/niieani/hashids.js.git" }, "license": "MIT", "author": "hashids.org <npm@invent.life> (https://github.com/hashids)", "contributors": [ { "name": "Ivan Akimov", "email": "ivan@barreleye.com", "url": "https://twitter.com/IvanAkimov" }, { "name": "Bazyli Brzóska", "email": "npm@invent.life", "url": "https://twitter.com/niieani" } ], "exports": { ".": { "import": "./esm/hashids.js", "require": "./cjs/index.js" }, "./*": { "import": "./esm/*.js", "require": "./cjs/*.js" }, "./cjs": { "require": "./cjs/index.js" }, "./cjs/*": { "require": "./cjs/*.js" }, "./esm/*": { "import": "./esm/*.js" }, "./package.json": "./package.json" }, "main": "cjs/index.js", "unpkg": "dist/hashids.js", "module": "esm/hashids.js", "source": "src/hashids.ts", "files": [ "cjs", "esm", "dist", "lib", "src" ], "scripts": { "benchmark": "yarn ts-node -O '{\"module\": \"commonjs\"}' -T src/tests/benchmark", "postinstallDev": "yarn prepare", "prepare": "rrun husky install .config/husky && yarn beemo create-config", "build": "yarn build:cjs && yarn build:esm && yarn build:umd", "release": "beemo run-script release", "build:cjs": "yarn rrun tsc --outDir cjs --module commonjs --target es6 -p tsconfig.build.json", "build:esm": "yarn rrun tsc --outDir esm --module esnext --target es6 -p tsconfig.build.json && ./add-extension.sh", "build:umd": "beemo webpack --entry=./src/hashids.ts --env 'outDir=dist' --env 'moduleTarget=umd' --env 'engineTarget=web' --env 'codeTarget=es6' --env 'name=Hashids' --env 'export=default' --env 'filename=hashids.js'", "clean": "git clean -dfX --exclude=node_modules src && beemo typescript:sync-project-refs", "test:lint": "rrun eslint 'src/**'", "test:code": "beemo jest", "test:types": "yarn rrun tsc --noEmit", "test:format": "yarn rrun prettier --check \"./{src,tests}/**/*[!.d].{.js,jsx,ts,tsx,json,md}\"", "test": "yarn test:format && yarn test:types && yarn test:lint && yarn test:code", "format": "yarn rrun prettier --write \"./{src,tests}/**/!(*.d).{.js,jsx,ts,tsx,json,md}\"" }, "browserslist": [ "last 2 version", "> 0.5%", "maintained node versions", "not dead" ], "devDependencies": { "@niieani/scaffold": "^1.7.0", "nodemark": "^0.3.0", "require-from-web": "^1.2.0", "ts-node": "^10.9.1" }, "publishConfig": { "access": "public" }, "release": { "branches": [ "+([0-9])?(.{+([0-9]),x}).x", "master", { "name": "main", "channel": false }, "next", { "name": "beta", "prerelease": true }, { "name": "alpha", "prerelease": true } ] }, "packageManager": "yarn@3.5.1", "version": "2.3.0" }