Package Exports
- regex-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (regex-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
Run the following commands to download and install the module:
$ git clone git@github.com:IonicaBizau/node-regex-parser.git node-regex-parser
$ cd node-regex-parser
$ npm install
Running tests
To run tests, do npm test
.
Example
var RegexParser = require("regex-parser");
console.log(RegexParser("/some words/gi")); // => /some words/gi
Methods
module.exports = RegexParser(input)
Parses a string input
Params:
- String
input
the string input that should be parsed as regular
Return:
- RegExp The parsed regular expression
Changelog
1.0.0
- More stable algorithm
- Added tests
- Starting with this version,
parse
method is removed. The module exports a function.
v0.2.0
- Changed package name into
regexp-parser
.
v0.1.0
- Initial release
How to contribute
- File an issue in the repository, using the bug tracker, describing the contribution you'd like to make. This will help us to get you started on the right foot.
- Fork the project in your account and create a new branch:
your-great-feature
. - Commit your changes in that branch.
- Open a pull request, and reference the initial issue in the pull request message.
License
See the LICENSE file.