Socket
Book a DemoInstallSign in
Socket

regexplained

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexplained

The module for rendering diagrams on regexplained.co.uk

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

regexplained

The module for rendering diagrams on regexplained.co.uk

This module is designed to work on the client side in browserify. If anyone can submit a pull request that makes this work in node.js as well (with decent cross platform support) I'll gladly accept it.

Usage

index.js

var regexplained = require('regexplained');
var paperContainer = document.getElementById('container');
regexplained(paperContainer, '[0-9][0-9][a-z]+', function(e) {
    if (e) {
      alert(e.stack || e.message);
      throw e;
    } else {
      //done
    }
  });

index.html

<div id="container"></div>
<script src="bundle.js"></script>

In a console:

$ npm install regexplained
$ browserify index.js > bundle.js

License

MIT

Keywords

regexp

FAQs

Package last updated on 25 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts