{"name":"regexp","version":"0.0.4","description":"Regex Parser","keywords":[],"dependencies":{},"devDependencies":{"uglify-js":"~2.3.6","pegjs":"https://github.com/dmajda/pegjs/archive/798ed6a8a4fbfc36b312ba09d428a5832808d9d6.tar.gz","bash-color":"0.0.3"},"scripts":{"test":"node test/index.js","prepublish":"npm test"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/regexp.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","readme":"# regexp\r\n\r\nRegex parser based on descriptions in http://www.javascriptkit.com/javatutors/redev2.shtml\r\n\r\n[![Build Status](https://travis-ci.org/ForbesLindesay/regexp.png?branch=master)](https://travis-ci.org/ForbesLindesay/regexp)\r\n[![Dependency Status](https://gemnasium.com/ForbesLindesay/regexp.png)](https://gemnasium.com/ForbesLindesay/regexp)\r\n[![NPM version](https://badge.fury.io/js/regexp.png)](http://badge.fury.io/js/regexp)\r\n\r\n## Installation\r\n\r\n    npm install regexp\r\n\r\n## Usage\r\n\r\n```js\r\nvar regexp = require('regexp')\r\nvar res = regexp('[a-z]+')\r\nassert.deepEqual(res, { type: 'match',\r\n  offset: 0,\r\n  text: '[a-z]+',\r\n  body:\r\n   [ { type: 'quantified',\r\n       offset: 0,\r\n       text: '[a-z]+',\r\n       body:\r\n        { type: 'charset',\r\n          offset: 0,\r\n          text: '[a-z]',\r\n          invert: false,\r\n          body:\r\n           [ { type: 'range',\r\n               offset: 1,\r\n               text: 'a-z',\r\n               start: 'a',\r\n               end: 'z' } ] },\r\n       quantifier:\r\n        { type: 'quantifier',\r\n          offset: 5,\r\n          text: '+',\r\n          min: 1,\r\n          max: Infinity,\r\n          greedy: true } } ] })\r\n```\r\n\r\n## Contributing\r\n\r\nTo run tests:\r\n\r\n```console\r\n$ npm install\r\n$ npm test\r\n```\r\n\r\nThis will also automatically compile `index.js`.\r\n\r\nThe key source files are `src/grammer.pegjs` which is compiled using [pegjs](http://pegjs.majda.cz/) and `src/index.js` which is a CommonJS module with a special additional pseudo `import` statement.\r\n\r\n## License\r\n\r\n  MIT","readmeFilename":"readme.md","bugs":{"url":"https://github.com/ForbesLindesay/regexp/issues"},"_id":"regexp@0.0.4","dist":{"shasum":"091422237f369f8e1755e664f6d9fd4a4cf7a117","tarball":"http://registry-npm.ywwl.com/regexp/download/regexp-0.0.4.tgz","integrity":"sha512-h2H8cZAsxnIyL4gXq3FDbO03KlUgxo/TIlzbKq9OzxWfkN9LjwRo2LLe+lvM+giCXUaxQWxJEHhTxYK+OYaEOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWiqnAw+lxhv/HU/+I9z0b5DRBAIUfzi3Pp3nTFzNL1AiAWwLsigQhxAa7KmJ0YbH/bi7OSs253zU151aZ9I/OpAg=="}],"size":7621,"noattachment":false,"key":"/regexp/-/regexp-0.0.4.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1375768219815,"_cnpm_publish_time":1375768219815,"dist-tags":{"latest":"1.0.0"}}