Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

human-format

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

human-format - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

index.d.ts

39

package.json
{
"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'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc