curly-notation-to-dotpath
v1.0.0
Published
convert curly notation to dotpath
Downloads
8
Maintainers
Readme
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`
// ]