An open API service indexing awesome lists of open source software.

https://github.com/lcanady/mu-parser

A simple regex powered text parser.
https://github.com/lcanady/mu-parser

Last synced: 9 months ago
JSON representation

A simple regex powered text parser.

Awesome Lists containing this project

README

          

# Mu-Parser
A simple regex powered text parser system. When required in didfferent parts of your code, it retains a list of parsers created.

```JavaScript
parsers = require('mu-parser');

// create a new parser and add an ANSI terminal escape code substitution.
parsers('color').addRule(/%[CcXx]b/, '\u001b[34m');

//later in another module...
parsers = require('mu-parser');
parsers('color').parse('%cbThis text will be blue!'); // Returns blue text.
```