Nightingale Posing Mischievously

    regex-viewer

    1.0.2 • Public • Published

    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

    alt tag

    Done.

    Keywords

    Install

    npm i regex-viewer

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar