parse-object-lookup-string
v0.1.0
Published
prefer using a Proxy
Downloads
1
Maintainers
Readme
parse-object-lookup-string
Don't use this, use a Proxy when possible.
Install
npm i parse-object-lookup-string
# yarn add parse-object-lookup-string
Use
import parse from 'parse-object-lookup-string';
expect(parse('?.["123"].one?.[`\\``]')).toEqual([
{ key: '123', optional: true },
{ key: 'one', optional: false },
{ key: '`', optional: true },
]);