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

    hjson-dsf-regexpublic

    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

    Downloadslast 7 days

    2

    version

    0.0.3

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar