Network Processor Module
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

hjson-dsf-regex

0.0.3 • Public • Published

HJSON Regex DSF

Parse slash-delimited regexes in HJSON as RegExp

Build Status

Usage

const util = require('util')
const hjson = require('hjson')
const regexDsf = require('hjson-dsf-regex')
const data = `myre: /^\\d+/`
const parsed = hjson.parse(data, {dsf:[regexDsf()]})
console.log(util.inspect(parsed)) // -> { myre: /^\d+/ }

install

npm i hjson-dsf-regex

Downloadsweekly downloads

7

version

0.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar