JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8918630
  • Score
    100M100P100Q210712F
  • License MIT

A module that parses a string as regular expression and returns the parsed value.

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

regex-parser Support this project

A module that parses a string as regular expression and returns the parsed value.

Installation

$ npm i --save regex-parser

Example

// Dependencies
var RegexParser = require("regex-parser");

console.log(RegexParser("/^hi$/g"));
// => /^hi$/g

Documentation

RegexParser(input)

Parses a string input.

Params

  • String input: The string input that should be parsed as regular expression.

Return

  • RegExp The parsed regular expression.

How to contribute

Have an idea? Found a bug? See how to contribute.

Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

License

MIT © Ionică Bizău