UNPKG
nimma
Version:
latest (0.7.2)
legacy (0.2.3)
0.7.2
0.7.1
0.7.0
0.6.0
0.5.0
0.4.2
0.4.1
0.4.0
0.3.1
0.2.3
0.2.2
0.2.1
0.2.0
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.0
Scalable JSONPath engine.
github.com/P0lip/nimma
P0lip/nimma
nimma
/
src
/
codegen
/
templates
/
state.mjs
10 lines
(7 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
*
as
b
from
'../ast/builders.mjs'
;
const
state = b.
identifier
(
'state'
);
export
default
{
_
: state,
initialValue
: b.
memberExpression
(state, b.
identifier
(
'initialValue'
)),
value
: b.
memberExpression
(state, b.
identifier
(
'value'
)), };