human-format
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "human-format", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"license": "ISC", | ||
@@ -31,4 +31,6 @@ "description": "Converts a number to/from a human readable string: `1337` ↔ `1.34kB`", | ||
"files": [ | ||
"index.d.ts", | ||
"index.js" | ||
], | ||
"types": "index.d.ts", | ||
"engines": { | ||
@@ -39,11 +41,11 @@ "node": ">=4" | ||
"browserify": "^17.0.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.2.0", | ||
"husky": "^4.3.8", | ||
"lint-staged": "^12.1.5", | ||
"prettier": "^2.5.1", | ||
"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", | ||
@@ -55,15 +57,12 @@ "uglify-js": "^3.1.8" | ||
"prepublishOnly": "mkdir -p dist && browserify -s humanFormat index.js | uglifyjs -c > dist/human-format.js", | ||
"test": "tap --no-check-coverage" | ||
"test": "tap --no-check-coverage && true", | ||
"prepare": "husky install" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged && npm run test" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"prettier --write", | ||
"eslint --ignore-pattern '!*'" | ||
] | ||
"*": [ | ||
"npm test", | ||
"prettier --ignore-unknown --write" | ||
], | ||
"*.{,c,m}js": "eslint --ignore-pattern '!*'" | ||
} | ||
} |
@@ -30,3 +30,3 @@ # human-format | ||
```html | ||
<script src="https://unpkg.com/human-format@0.10/index.js"></script> | ||
<script src="https://unpkg.com/human-format@1/index.js"></script> | ||
``` | ||
@@ -50,3 +50,3 @@ | ||
humanFormat(1337, { | ||
maxDecimals: 'auto', | ||
maxDecimals: "auto", | ||
}); | ||
@@ -56,3 +56,3 @@ //=> '1.3 k' | ||
humanFormat(13337, { | ||
maxDecimals: 'auto', | ||
maxDecimals: "auto", | ||
}); | ||
@@ -59,0 +59,0 @@ //=> '13 k' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15843
5
359
0