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`
// ]

Package Sidebar

Install

npm i curly-notation-to-dotpath

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rogerbf