1 | [npm]: https://img.shields.io/npm/v/@jsep-plugin/object
|
2 | [npm-url]: https://www.npmjs.com/package/@jsep-plugin/object
|
3 | [size]: https://packagephobia.now.sh/badge?p=@jsep-plugin/object
|
4 | [size-url]: https://packagephobia.now.sh/result?p=@jsep-plugin/object
|
5 |
|
6 | [![npm][npm]][npm-url]
|
7 | [![size][size]][size-url]
|
8 |
|
9 | # @jsep-plugin/object
|
10 |
|
11 | A JSEP plugin for adding object expression support. Allows expressions of the form:
|
12 |
|
13 | ```javascript
|
14 | jsep('{ a: 1, b: { c }}[d]');
|
15 | ```
|
16 |
|
17 | ## Install
|
18 |
|
19 | ```console
|
20 | npm install @jsep-plugin/object
|
21 | # or
|
22 | yarn add @jsep-plugin/object
|
23 | ```
|
24 |
|
25 | ## Usage
|
26 | ```javascript
|
27 | import jsep from 'jsep';
|
28 | import jsepObject from '@jsep-plugin/object';
|
29 | jsep.plugins.register(jsepObject);
|
30 | ```
|
31 |
|
32 | ## Meta
|
33 |
|
34 | [LICENSE (MIT)](/LICENSE)
|