{"_id":"floating-point-regex","_rev":"101710","name":"floating-point-regex","description":"Regular expression for matching floating-point literals.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:35:33.000Z","created":"2017-02-22T04:41:17.020Z","0.1.0":"2017-02-22T04:41:17.020Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/regexhq/floating-point-regex.git"},"versions":{"0.1.0":{"name":"floating-point-regex","description":"Regular expression for matching floating-point literals.","version":"0.1.0","homepage":"https://github.com/regexhq/floating-point-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/regexhq/floating-point-regex.git"},"bugs":{"url":"https://github.com/regexhq/floating-point-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["floating","point","regex"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["punctuation-regex","whitespace-regex","unc-path-regex"]},"lint":{"reflinks":true}},"gitHead":"f17d23cea0c13b88e93dd0ae7a258920f1d4148a","_id":"floating-point-regex@0.1.0","_shasum":"887d6fec959e4d32e9219ffbf4eab4149999fe91","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"887d6fec959e4d32e9219ffbf4eab4149999fe91","size":2505,"noattachment":false,"key":"/floating-point-regex/-/floating-point-regex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/floating-point-regex/download/floating-point-regex-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/floating-point-regex-0.1.0.tgz_1487738476386_0.8546078635845333"},"directories":{},"publish_time":1487738477020,"_cnpm_publish_time":1487738477020,"_hasShrinkwrap":false}},"readme":"# floating-point-regex [![NPM version](https://img.shields.io/npm/v/floating-point-regex.svg?style=flat)](https://www.npmjs.com/package/floating-point-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/floating-point-regex.svg?style=flat)](https://npmjs.org/package/floating-point-regex)  [![NPM total downloads](https://img.shields.io/npm/dt/floating-point-regex.svg?style=flat)](https://npmjs.org/package/floating-point-regex) [![Linux Build Status](https://img.shields.io/travis/regexhq/floating-point-regex.svg?style=flat&label=Travis)](https://travis-ci.org/regexhq/floating-point-regex)\n\n> Regular expression for matching floating-point literals.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save floating-point-regex\n```\n\n## Usage\n\n```js\nvar regex = require('floating-point-regex');\n\nconsole.log(regex().test('3.1415926'))   // true\nconsole.log(regex().test('-.123456789')) // true\nconsole.log(regex().test('-3.1E+12'))    // true\nconsole.log(regex().test('-3.1E-12'))    // true\nconsole.log(regex().test('+3.1E-12'))    // true\nconsole.log(regex().test('3.1E-12'))     // true\nconsole.log(regex().test('3.1E12'))      // true\nconsole.log(regex().test('3.1e12'))      // true\nconsole.log(regex().test('0.1e-23'))     // true\nconsole.log(regex().test('.1e-23'))      // true\nconsole.log(regex().test('-2.001'))      // true\nconsole.log(regex().test('2.001'))       // true\nconsole.log(regex().test('2'))           // true\nconsole.log(regex().test('2.0e1'))       // true\n```\n\n## About\n\n### Related projects\n\n* [punctuation-regex](https://www.npmjs.com/package/punctuation-regex): Regular expression for matching punctuation characters. | [homepage](https://github.com/regexhq/punctuation-regex \"Regular expression for matching punctuation characters.\")\n* [unc-path-regex](https://www.npmjs.com/package/unc-path-regex): Regular expression for testing if a file path is a windows UNC file path. Can… [more](https://github.com/regexhq/unc-path-regex) | [homepage](https://github.com/regexhq/unc-path-regex \"Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.\")\n* [whitespace-regex](https://www.npmjs.com/package/whitespace-regex): Regular expression for matching the whitespace in a string. | [homepage](https://github.com/regexps/whitespace-regex \"Regular expression for matching the whitespace in a string.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 21, 2017._","_attachments":{},"homepage":"https://github.com/regexhq/floating-point-regex","bugs":{"url":"https://github.com/regexhq/floating-point-regex/issues"},"license":"MIT"}