{"name":"math-clamp-x","version":"3.0.16","description":"Clamp a number to limits.","homepage":"https://github.com/Xotic750/math-clamp-x","author":{"name":"Graham Fairweather","email":"xotic750@gmail.com"},"copyright":"Copyright (c) 2017","keywords":["math","clamp","module","javascript","nodejs","browser"],"module":"dist/math-clamp-x.esm.js","main":"dist/math-clamp-x.js","jsdelivr":"dist/math-clamp-x.min.js","scripts":{"build:esm":"mkdirp dist && babel -s true --env-name esm src/math-clamp-x.js -o dist/math-clamp-x.esm.js","build:base":"webpack --bail --progress --profile --colors","build":"npm run build:esm && cross-env NODE_ENV=production npm run build:base --","build:dev":"npm run build:base --","clean":"rimraf dist && npm run clean:coverage","clean:coverage":"rimraf __tests__/coverage","lint":"eslint -f 'node_modules/eslint-friendly-formatter' --ext .js .","lint-fix":"npm run lint -- --fix","report":"npm run build -- --env.report","report:dev":"npm run build:dev -- --env.report","security":"npm audit","security-fix":"npm run security -- fix","start":"nodemon --exec \"npm run build\" --watch src","test":"npm run clean:coverage && jest","test:ci":"npm run test -- --ci --maxWorkers=2","test:coverage":"npm run test -- --coverage"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Xotic750/math-clamp-x.git"},"bugs":{"url":"https://github.com/Xotic750/math-clamp-x/issues"},"dependencies":{"to-number-x":"^3.0.22"},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/node":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-syntax-dynamic-import":"^7.2.0","@babel/plugin-syntax-export-default-from":"^7.2.0","@babel/plugin-syntax-export-namespace-from":"^7.2.0","@babel/plugin-transform-property-mutators":"^7.2.0","@babel/plugin-transform-runtime":"^7.5.5","@babel/preset-env":"^7.5.5","@babel/runtime":"^7.5.5","@prorenata/eslint-config-vue":"^1.13.11","@types/jest":"^24.0.15","@types/node":"^12.6.8","babel-core":"^7.0.0-0","babel-eslint":"^10.0.2","babel-loader":"^8.0.6","babel-plugin-lodash":"^3.3.4","caniuse-lite":"^1.0.30000985","chalk":"^2.4.2","concurrently":"^4.1.1","cross-env":"^5.2.0","eslint":"=5.16.0","eslint-config-airbnb-base":"^13.2.0","eslint-config-prettier":"^6.0.0","eslint-friendly-formatter":"^4.0.1","eslint-import-resolver-webpack":"^0.11.1","eslint-loader":"^2.2.1","eslint-plugin-babel":"^5.3.0","eslint-plugin-compat":"^3.3.0","eslint-plugin-css-modules":"^2.11.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-html":"^6.0.0","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.13.6","eslint-plugin-jsdoc":"^15.7.1","eslint-plugin-json":"^1.4.0","eslint-plugin-lodash":"^5.1.0","eslint-plugin-no-use-extend-native":"^0.4.1","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^3.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-sort-class-members":"^1.5.0","eslint-plugin-switch-case":"^1.1.2","eslint-plugin-vue":"^5.2.3","friendly-errors-webpack-plugin":"^1.7.0","identity-obj-proxy":"^3.0.0","jest":"^24.8.0","jest-cli":"^24.8.0","jest-file":"^1.0.0","jsdoc-to-markdown":"^5.0.0","lodash":"^4.17.15","lodash-webpack-plugin":"^0.11.5","mkdirp":"^0.5.1","node-notifier":"^5.4.0","nodemon":"^1.19.1","prettier":"=1.14.3","rimraf":"^2.6.3","semver":"^6.3.0","source-map-loader":"^0.2.4","strip-ansi":"^5.2.0","terser-webpack-plugin":"^1.3.0","typescript":"^3.5.3","webpack":"^4.37.0","webpack-bundle-analyzer":"^3.3.2","webpack-cli":"^3.3.6","webpack-merge":"^4.2.1"},"engines":{"node":">=8.11.4","npm":"6.10.1"},"browserslist":["> 1%","Explorer >= 9"],"gitHead":"b99c980d4028e2b56c03ec89bcabb042033c3e4f","_id":"math-clamp-x@3.0.16","_npmVersion":"5.10.0","_nodeVersion":"8.11.4","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"dist":{"integrity":"sha512-IhCy+kyRJGVqcKKdRGGUiO3qhxI5a8Dm6Xn+pGL96G40c1N1jN40sbKV1rex7CIpPPWweEjaBosMaCHoIDW0ow==","shasum":"9841cd965cdcc09f9bf6fd242cde01b70c40642f","tarball":"http://registry-npm.ywwl.com/math-clamp-x/download/math-clamp-x-3.0.16.tgz","fileCount":10,"unpackedSize":162541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOF9TCRA9TVsSAnZWagAAhpgQAJ87yv8S2zyRgwRQ8gho\n0RXt+b7hFD6BqTrnGULo0UVO5vCsc0kt57wtVgbt8NynZbt91q5cVbqplruN\ntXvk9CrpkdJoo+86R6uZRJ2aGvdeqX4pCog3Gg7Tw4IYLJoSYBtrRlDShlaK\niiauKS2Z1Ou4FXc74C1wBaezomoP9n61qCCc8xtOegZBAUFET4mtPwhIrHhx\nq0c7v1E86EFvurjMXp1AmNb/hGHyEctcBVuvCd39WNWqvVqD220lxyjS0r08\nfvz7ef/9N+aSU8JVeW0OkicU1ZY/+zzD2VvAU5GkbcMqub0SynF7diEdC4D8\nvzfXsKY8D29uHhU7Vndxo3AzshSUxOMgn74Fk0Gl6bTbyDcjLSmVtu96S+Zu\nw26D8DoN26TBDdw+H3jW1NgCzmdSBUMx3D1zOzuIW8/8tbpeTPe8U6DvrwaJ\nJ8xJXzr2/vFzwsC6P/MwimFkVXrXhB0app+LQC36exNkbXmtabShC9GvCH4t\ndwLbOYx5HMtGKrDBNmX5AIklNerSpGJqhofXOuMxDFeMQbGU49aobMvk+HtZ\nK6ZgKYS3/sNsMWRBpkB8sQ7bDj0Ts32NS+pMMpOF2v76OVq/Djj4IpSOEA7J\n+8hGw5Ho/tqnZI0B872cOYUJC5OvRtSLM23ft5VnhEqM4EaJRkLU/GmOVeVr\nBh5Q\r\n=tefk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTGNH7ezADfT2eb39vW3W+ZK1jmg8v4AQ3vXDmxx90IQIhAN3F4PeCxQqaBbWFuEWFkLkK28loORV+7bnrcTLn2P4D"}],"size":40790,"noattachment":false,"key":"/math-clamp-x/-/math-clamp-x-3.0.16.tgz"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/math-clamp-x_3.0.16_1563975506297_0.5820183379373673"},"_hasShrinkwrap":false,"readme":"<a\n  href=\"https://travis-ci.org/Xotic750/math-clamp-x\"\n  title=\"Travis status\">\n<img\n  src=\"https://travis-ci.org/Xotic750/math-clamp-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\">\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/math-clamp-x\"\n  title=\"Dependency status\">\n<img src=\"https://david-dm.org/Xotic750/math-clamp-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/math-clamp-x?type=dev\"\n  title=\"devDependency status\">\n<img src=\"https://david-dm.org/Xotic750/math-clamp-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://badge.fury.io/js/math-clamp-x\"\n  title=\"npm version\">\n<img src=\"https://badge.fury.io/js/math-clamp-x.svg\"\n  alt=\"npm version\" height=\"18\">\n</a>\n<a\n  href=\"https://www.jsdelivr.com/package/npm/math-clamp-x\"\n  title=\"jsDelivr hits\">\n<img src=\"https://data.jsdelivr.com/v1/package/npm/math-clamp-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\">\n</a>\n<a\n  href=\"https://bettercodehub.com/results/Xotic750/math-clamp-x\"\n  title=\"bettercodehub score\">\n<img src=\"https://bettercodehub.com/edge/badge/Xotic750/math-clamp-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\">\n</a>\n<a\n  href=\"https://coveralls.io/github/Xotic750/math-clamp-x?branch=master\"\n  title=\"Coverage Status\">\n<img src=\"https://coveralls.io/repos/github/Xotic750/math-clamp-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\">\n</a>\n\n<a name=\"module_math-clamp-x\"></a>\n\n## math-clamp-x\n\nClamp a number to limits.\n\n<a name=\"exp_module_math-clamp-x--module.exports\"></a>\n\n### `module.exports(value, [min], max)` ⇒ <code>number</code> ⏏\n\nThis method clamp a number to min and max limits inclusive.\n\n**Kind**: Exported function  \n**Returns**: <code>number</code> - The clamped number.  \n**Throws**:\n\n- <code>RangeError</code> If min > max.\n\n| Param | Type                | Default        | Description               |\n| ----- | ------------------- | -------------- | ------------------------- |\n| value | <code>number</code> |                | The number to be clamped. |\n| [min] | <code>number</code> | <code>0</code> | The minimum number.       |\n| max   | <code>number</code> |                | The maximum number.       |\n\n**Example**\n\n```js\nimport mathClamp from 'math-clamp-x';\n\nconsole.log(mathClamp(-5, 3, 3)); // 3\nconsole.log(mathClamp(0, 3, 3)); // 3\nconsole.log(mathClamp(5, 3, 3)); // 3\n```\n","publish_time":1563975506489,"_cnpm_publish_time":1563975506489,"dist-tags":{"latest":"3.2.2"}}