{"_id":"is-decimal","_rev":"1392737","name":"is-decimal","description":"Check if a character is decimal","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2021-11-04T07:01:01.000Z","created":"2016-07-11T20:51:41.787Z","2.0.1":"2021-11-04T06:55:58.815Z","2.0.0":"2021-03-11T08:44:16.965Z","1.0.4":"2020-01-25T11:11:27.822Z","1.0.3":"2019-05-10T19:01:25.139Z","1.0.2":"2018-04-21T10:05:48.081Z","1.0.1":"2017-07-18T16:33:58.952Z","1.0.0":"2016-07-11T20:51:41.787Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/wooorm/is-decimal.git"},"versions":{"2.0.1":{"name":"is-decimal","version":"2.0.1","description":"Check if a character is decimal","license":"MIT","keywords":["string","character","char","code","decimal"],"repository":{"type":"git","url":"git+https://github.com/wooorm/is-decimal.git"},"bugs":{"url":"https://github.com/wooorm/is-decimal/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.46.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"6ebcbb7ca2b61486f276c813ff4d7b6ab99b1961","homepage":"https://github.com/wooorm/is-decimal#readme","_id":"is-decimal@2.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"9469d2dc190d0214fd87d78b78caecc0cc14eef7","size":3020,"noattachment":false,"key":"/is-decimal/-/is-decimal-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-decimal/download/is-decimal-2.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-decimal_2.0.1_1636008958671_0.12419876259766327"},"_hasShrinkwrap":false,"publish_time":1636008958815,"_cnpm_publish_time":1636008958815},"2.0.0":{"name":"is-decimal","version":"2.0.0","description":"Check if a character is decimal","license":"MIT","keywords":["string","character","char","code","decimal"],"repository":{"type":"git","url":"git+https://github.com/wooorm/is-decimal.git"},"bugs":{"url":"https://github.com/wooorm/is-decimal/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","prebuild":"rimraf \"*.d.ts\"","build":"tsc","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"0069c6f660ad2eb54efee6250c9286f93e6101d1","homepage":"https://github.com/wooorm/is-decimal#readme","_id":"is-decimal@2.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.1","dist":{"shasum":"db1140337809fd043a056ae40a9bd1cdc563034c","size":2393,"noattachment":false,"key":"/is-decimal/-/is-decimal-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-decimal/download/is-decimal-2.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-decimal_2.0.0_1615452256792_0.2964143855134045"},"_hasShrinkwrap":false,"publish_time":1615452256965,"_cnpm_publish_time":1615452256965},"1.0.4":{"name":"is-decimal","version":"1.0.4","description":"Check if a character is decimal","license":"MIT","keywords":["string","character","char","code","decimal"],"repository":{"type":"git","url":"git+https://github.com/wooorm/is-decimal.git"},"bugs":{"url":"https://github.com/wooorm/is-decimal/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s isDecimal -o is-decimal.js","build-mangle":"browserify . -s isDecimal -p tinyify -o is-decimal.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["is-decimal.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"eccc588e219ad3067099fc5f5f2e3950eccdc41e","homepage":"https://github.com/wooorm/is-decimal#readme","_id":"is-decimal@1.0.4","_nodeVersion":"13.0.1","_npmVersion":"6.13.6","dist":{"shasum":"65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5","size":2175,"noattachment":false,"key":"/is-decimal/-/is-decimal-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-decimal/download/is-decimal-1.0.4.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-decimal_1.0.4_1579950687725_0.5718438670819332"},"_hasShrinkwrap":false,"publish_time":1579950687822,"_cnpm_publish_time":1579950687822},"1.0.3":{"name":"is-decimal","version":"1.0.3","description":"Check if a character is decimal","license":"MIT","keywords":["string","character","char","code","decimal"],"repository":{"type":"git","url":"git+https://github.com/wooorm/is-decimal.git"},"bugs":{"url":"https://github.com/wooorm/is-decimal/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^14.0.0","prettier":"^1.12.1","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","tinyify":"^2.5.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s isDecimal -o is-decimal.js","build-mangle":"browserify . -s isDecimal -p tinyifgy -o is-decimal.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["is-decimal.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"e8105aeb590288aec11fcbcebad7f8e8130340af","homepage":"https://github.com/wooorm/is-decimal#readme","_id":"is-decimal@1.0.3","_nodeVersion":"11.9.0","_npmVersion":"6.9.0","dist":{"shasum":"381068759b9dc807d8c0dc0bfbae2b68e1da48b7","size":2165,"noattachment":false,"key":"/is-decimal/-/is-decimal-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-decimal/download/is-decimal-1.0.3.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-decimal_1.0.3_1557514884963_0.9489409614929885"},"_hasShrinkwrap":false,"publish_time":1557514885139,"_cnpm_publish_time":1557514885139},"1.0.2":{"name":"is-decimal","version":"1.0.2","description":"Check if a character is decimal","license":"MIT","keywords":["string","character","char","code","decimal"],"repository":{"type":"git","url":"git+https://github.com/wooorm/is-decimal.git"},"bugs":{"url":"https://github.com/wooorm/is-decimal/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","esmangle":"^1.0.1","nyc":"^11.0.0","prettier":"^1.12.1","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","xo":"^0.20.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify index.js --bare -s isDecimal > is-decimal.js","build-mangle":"esmangle < is-decimal.js > is-decimal.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"no-var":"off","prefer-arrow-callback":"off"},"ignores":["is-decimal.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"9fbc31667b24164fcd0955696574df80ee75b97c","homepage":"https://github.com/wooorm/is-decimal#readme","_id":"is-decimal@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"894662d6a8709d307f3a276ca4339c8fa5dff0ff","size":2134,"noattachment":false,"key":"/is-decimal/-/is-decimal-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-decimal/download/is-decimal-1.0.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-decimal_1.0.2_1524305148015_0.9889593723389443"},"_hasShrinkwrap":false,"publish_time":1524305148081,"_cnpm_publish_time":1524305148081},"1.0.1":{"name":"is-decimal","version":"1.0.1","description":"Check if a character is decimal","license":"MIT","keywords":["string","character","char","code","decimal"],"repository":{"type":"git","url":"git+https://github.com/wooorm/is-decimal.git"},"bugs":{"url":"https://github.com/wooorm/is-decimal/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^14.1.0","esmangle":"^1.0.1","nyc":"^11.0.0","remark-cli":"^3.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.0.0","xo":"^0.18.0"},"scripts":{"build-md":"remark . -qfo","build-bundle":"browserify index.js --bare -s isDecimal > is-decimal.js","build-mangle":"esmangle < is-decimal.js > is-decimal.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"xo":{"space":true,"esnext":false,"ignores":["is-decimal.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"0e2c01cc754137b418d8388ce5d6f88f5b1b5346","homepage":"https://github.com/wooorm/is-decimal#readme","_id":"is-decimal@1.0.1","_shasum":"f5fb6a94996ad9e8e3761fbfbd091f1fca8c4e82","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"f5fb6a94996ad9e8e3761fbfbd091f1fca8c4e82","size":2011,"noattachment":false,"key":"/is-decimal/-/is-decimal-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-decimal/download/is-decimal-1.0.1.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-decimal-1.0.1.tgz_1500395638078_0.13804630190134048"},"directories":{},"publish_time":1500395638952,"_hasShrinkwrap":false,"_cnpm_publish_time":1500395638952},"1.0.0":{"name":"is-decimal","version":"1.0.0","description":"Check if a character is decimal","license":"MIT","keywords":["string","character","char","code","decimal"],"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/wooorm/is-decimal.git"},"bugs":{"url":"https://github.com/wooorm/is-decimal/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^13.0.1","esmangle":"^1.0.1","nyc":"^7.0.0","remark-cli":"^1.0.0","remark-comment-config":"^4.0.0","remark-github":"^5.0.0","remark-lint":"^4.0.0","remark-validate-links":"^4.0.0","tape":"^4.0.0","xo":"^0.16.0"},"scripts":{"build-md":"remark . --quiet --frail","build-bundle":"browserify index.js --bare -s isDecimal > is-decimal.js","build-mangle":"esmangle < is-decimal.js > is-decimal.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"xo":{"space":true,"ignores":["is-decimal.js","is-decimal.min.js"]},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"output":true,"plugins":["comment-config","github","lint","validate-links"],"settings":{"bullet":"*"}},"gitHead":"6f8e012e4ff8c78ad60625a6d3d8463795318f8b","homepage":"https://github.com/wooorm/is-decimal#readme","_id":"is-decimal@1.0.0","_shasum":"940579b6ea63c628080a69e62bda88c8470b4fe0","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"940579b6ea63c628080a69e62bda88c8470b4fe0","size":2276,"noattachment":false,"key":"/is-decimal/-/is-decimal-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-decimal/download/is-decimal-1.0.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-decimal-1.0.0.tgz_1468270298791_0.2623138800263405"},"directories":{},"publish_time":1468270301787,"_cnpm_publish_time":1468270301787,"_hasShrinkwrap":false}},"readme":"# is-decimal\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nCheck if a character is a decimal.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`isDecimal(character|code)`](#isdecimalcharactercode)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a function that checks if a given character is an ASCII decimal.\n\n## When should I use this?\n\nNot often, as it’s relatively simple to do yourself.\nThis package exists because it’s needed in several related packages, at which\npoint it becomes useful to defer to one shared function.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:\n\n```sh\nnpm install is-decimal\n```\n\nIn Deno with [Skypack][]:\n\n```js\nimport {isDecimal} from 'https://cdn.skypack.dev/is-decimal@2?dts'\n```\n\nIn browsers with [Skypack][]:\n\n```html\n<script type=\"module\">\n  import {isDecimal} from 'https://cdn.skypack.dev/is-decimal@2?min'\n</script>\n```\n\n## Use\n\n```js\nimport {isDecimal} from 'is-decimal'\n\nisDecimal('0') // => true\nisDecimal('9') // => true\nisDecimal('a') // => false\nisDecimal('????') // => false\n```\n\n## API\n\nThis package exports the following identifiers: `isDecimal`.\nThere is no default export.\n\n### `isDecimal(character|code)`\n\nCheck whether the given character code (`number`), or the character code at the\nfirst position (`string`), is decimal.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 12.20+, 14.14+, and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/is-alphabetical`](https://github.com/wooorm/is-alphabetical)\n*   [`wooorm/is-hexadecimal`](https://github.com/wooorm/is-hexadecimal)\n*   [`wooorm/is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)\n*   [`wooorm/is-word-character`](https://github.com/wooorm/is-word-character)\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/is-decimal/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/is-decimal/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-decimal.svg\n\n[coverage]: https://codecov.io/github/wooorm/is-decimal\n\n[downloads-badge]: https://img.shields.io/npm/dm/is-decimal.svg\n\n[downloads]: https://www.npmjs.com/package/is-decimal\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/is-decimal.svg\n\n[size]: https://bundlephobia.com/result?p=is-decimal\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[skypack]: https://www.skypack.dev\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","_attachments":{},"homepage":"https://github.com/wooorm/is-decimal#readme","bugs":{"url":"https://github.com/wooorm/is-decimal/issues"},"license":"MIT"}