UNPKG

generate-alphabetic-name

Version:

Take an arbitrary string or integer and generate a short alphabetic code. It works in the browser and node.js and is designed to be as small as possible, and extremely fast.

50 lines (49 loc) 1.36 kB
{ "name": "generate-alphabetic-name", "main": "lib/index.js", "types": "lib/index.d.ts", "files": [ "lib/" ], "scripts": { "test": "jest --no-cache", "test:coverage": "yarn test --coverage", "test:watch": "yarn test --watch", "clean": "rimraf lib", "prebuild": "yarn clean", "build": "tsc", "build:watch": "yarn build -w", "postbuild": "rimraf lib/__tests__ && flowgen \"lib/**/*\"", "precommit": "pretty-quick --staged", "prepush": "yarn prettier:diff && yarn test", "prettier": "prettier --ignore-path .gitignore --write './**/*.{js,jsx,ts,tsx}'", "prettier:diff": "prettier --ignore-path .gitignore --list-different './**/*.{js,jsx,ts,tsx}'", "ci:test": "yarn prettier:diff && yarn test" }, "devDependencies": { "@types/jest": "^23.1.5", "@types/node": "^10.5.2", "flowgen2": "^2.2.0", "husky": "^0.14.3", "jest": "^23.3.0", "prettier": "^1.13.7", "pretty-quick": "^1.6.0", "rimraf": "^2.6.2", "ts-jest": "^23.0.0", "tslint": "^5.10.0", "typescript": "^3.1.1" }, "jest": { "moduleFileExtensions": [ "ts", "js" ], "testEnvironment": "node", "transform": { "^.+\\.ts$": "ts-jest" }, "transformIgnorePatterns": [], "testRegex": ".*/__tests__/.*\\.(test|spec)\\.ts$" }, "version": "2.0.0" }