curly-notation-to-dotpath

1.0.0 • Public • Published

curly-notation-to-dotpath

Convert curly notation into a collection of dotpaths.

usage

const parse = require(`curly-notation-to-dotpath`)
 
parse(`
  {
    a {
      nested {
        property,
        two,
        more
      }
    },
    b {
      c
    }
  }
`)
// [
//   `a.nested.property`,
//   `a.nested.two`,
//   `a.nested.more`,
//   `b.c`
// ]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i curly-notation-to-dotpath

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rogerbf