Skip to content

Xiphe/parse-object-lookup-string

Repository files navigation

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 },
]);

About

You probably want to go with a Proxy instead...

Resources

License

Stars

Watchers

Forks

Packages

No packages published