1.0.0 • Published 7 years ago
curly-notation-to-dotpath v1.0.0
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`
// ]
1.0.0
7 years ago