0.1.0 • Published 2 years ago

parse-object-lookup-string v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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