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+/ }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i hjson-dsf-regex

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • kba