regex-viewer
v1.0.2
Published
A simple regex viewer from node.js - no need to mess with HTML
Downloads
2
Readme
regex-viewer
A simple way to visually view regex expression results in a browser - only using node.js!
Under the covers, uses cheeriojs to do the HTML string manipulation
Usage
Very simple.
// npm init
npm install regex-viewer --save
Write your regex, and call this NPM module when you want to see a result
Example:
'use strict';
var viewer = require('regex-viewer');
var str = `Is this This?`;
var regex = /is/gi;
viewer(str, regex)
Result.
The result.html file generated will automatically be opened using your default web browser
Done.