UNPKG

human-format

Version:

Converts a number to/from a human readable string: `1337` ↔ `1.34 kB`

65 lines (64 loc) • 1.6 kB
{ "name": "human-format", "version": "1.4.0", "license": "ISC", "description": "Converts a number to/from a human readable string: `1337` ↔ `1.34 kB`", "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": "git+https://github.com/JsCommunity/human-format.git" }, "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": { "@eslint/js": "^10.0.1", "eslint": "^10.12.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-n": "^18.4.1", "husky": "^9.1.7", "lint-staged": "^17.6.0", "prettier": "^3.9.9", "tsd": "^0.33.0" }, "scripts": { "dev-test": "node --test --watch index.spec.js", "test": "node --test --experimental-test-coverage --test-coverage-include=index.js --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 index.spec.js && tsd && true", "prepare": "husky", "version": "node scripts/changelog-version.js && git add CHANGELOG.md" }, "lint-staged": { "*": [ "npm test", "prettier --ignore-unknown --write" ], "*.{,c,m}js": "eslint" }, "prettier": { "trailingComma": "es5" } }