human-format
Version:
Converts a number to/from a human readable string: `1337` ↔ `1.34kB`
66 lines (65 loc) • 1.6 kB
JSON
{
"name": "human-format",
"version": "1.2.1",
"license": "ISC",
"description": "Converts a number to/from a human readable string: `1337` ↔ `1.34kB`",
"keywords": [
"byte",
"bytes",
"file",
"filesize",
"human",
"humanized",
"pretty",
"readable",
"si",
"size",
"unit"
],
"homepage": "https://github.com/JsCommunity/human-format",
"bugs": "https://github.com/JsCommunity/human-format/issues",
"repository": {
"type": "git",
"url": "http://github.com/JsCommunity/human-format"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@isonoe.net"
},
"preferGlobal": false,
"files": [
"index.d.ts",
"index.js"
],
"types": "index.d.ts",
"engines": {
"node": ">=4"
},
"devDependencies": {
"browserify": "^17.0.0",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-promise": "^6.1.1",
"husky": "^8.0.0",
"lint-staged": "^13.2.0",
"prettier": "^2.8.7",
"tap": "^16.0.0",
"uglify-js": "^3.1.8"
},
"scripts": {
"dev-test": "tap --no-check-coverage --watch",
"prepublishOnly": "mkdir -p dist && browserify -s humanFormat index.js | uglifyjs -c > dist/human-format.js",
"test": "tap --no-check-coverage && true",
"prepare": "husky install"
},
"lint-staged": {
"*": [
"npm test",
"prettier --ignore-unknown --write"
],
"*.{,c,m}js": "eslint --ignore-pattern '!*'"
}
}