New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

human-number

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

human-number - npm Package Compare versions

Comparing version

to
1.0.7

77

package.json

@@ -5,7 +5,7 @@ {

"homepage": "https://nicedoc.io/Kikobeats/human-number",
"version": "1.0.6",
"version": "1.0.7",
"main": "src/index.js",
"author": {
"email": "josefrancisco.verdu@gmail.com",
"name": "Kiko Beats",
"email": "josefrancisco.verdu@gmail.com",
"url": "https://kikobeats.com"

@@ -21,12 +21,12 @@ },

"keywords": [
"pretty",
"prettify",
"human",
"humanize",
"humanized",
"number",
"prettify",
"pretty",
"readable",
"text",
"str",
"string",
"str",
"number"
"text"
],

@@ -40,16 +40,14 @@ "dependencies": {

"ava": "latest",
"c8": "latest",
"ci-publish": "latest",
"conventional-github-releaser": "latest",
"coveralls": "latest",
"finepack": "latest",
"git-authors-cli": "latest",
"git-dirty": "latest",
"husky": "latest",
"lint-staged": "latest",
"nano-staged": "latest",
"npm-check-updates": "latest",
"nyc": "latest",
"prettier-standard": "latest",
"simple-git-hooks": "latest",
"standard": "latest",
"standard-markdown": "latest",
"standard-version": "latest",
"ci-publish": "latest"
"standard-version": "latest"
},

@@ -59,16 +57,18 @@ "engines": {

},
"files": [
"src"
],
"scripts": {
"clean": "rm -rf node_modules",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"lint": "standard-markdown README.md && standard",
"postrelease": "npm run release:tags && npm run release:github && ci-publish",
"precommit": "lint-staged",
"prerelease": "npm run update:check",
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
"precommit": "nano-staged",
"prerelease": "npm run update:check && npm run contributors",
"pretest": "npm run lint",
"pretty": "prettier-standard index.js {core,test,bin,scripts}/**/*.js --single-quote --print-width 100",
"release": "git-authors-cli && git add package.json && standard-version -a",
"release": "standard-version -a",
"release:github": "conventional-github-releaser -p angular",
"release:tags": "git push --follow-tags origin HEAD:master",
"test": "nyc ava",
"update": "ncu -a",
"test": "c8 ava",
"update": "ncu -u",
"update:check": "ncu -- --error-level 2"

@@ -82,24 +82,17 @@ },

},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
"nano-staged": {
"*.js": [
"prettier-standard"
],
"*.md": [
"standard-markdown"
],
"package.json": [
"finepack"
]
},
"lint-staged": {
"linters": {
"package.json": [
"finepack",
"git add"
],
"*.js": [
"prettier-standard",
"git add"
],
"*.md": [
"standard-markdown",
"git add"
]
}
"simple-git-hooks": {
"commit-msg": "npx commitlint --edit",
"pre-commit": "npx nano-staged"
}
}

@@ -8,6 +8,8 @@ 'use strict'

n = Math.abs(n)
var index = 0
while (n >= TRESHOLD && ++index < ALPHABET.length) { n /= TRESHOLD }
let index = 0
while (n >= TRESHOLD && ++index < ALPHABET.length) {
n /= TRESHOLD
}
if (fn) n = fn(n)
return index === 0 ? n : n + ALPHABET[index - 1]
}