plasticine.js
v2.2.5
Published
Transform javascript object
Downloads
6
Maintainers
Readme
Plasticine.js
Installation
$ npm install plasticine.js
or
$ npm i plasticine.js
Syntax:
| Operator | Description |
| :------------------------ | :----------------------------------------------------------------- |
| $
| Root |
| *
| Wildcard. Available anywhere a name or numeric are required. |
| ..
| Deep wildcard. Available anywhere a name is required. |
| .<name>
| Dot-notated child |
| ['<name> (, <name>)']
| Selecting multiple children |
| [<number> (, <number>)]
| Indexed child or children |
| [?(<expression>)]
| Filter expression. Expression must evaluate to a boolean value. |
| [(<expression>)]
| Expression. Expression must evaluate to a string or numeric value. |
Docs & Community
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test