Skip to content

rogerbf/curly-notation-to-dotpath

Repository files navigation

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

About

convert curly notation to dotpath

Resources

Stars

Watchers

Forks

Packages

No packages published