plasticine.js
v2.2.5
Published
Transform javascript object
Maintainers
Readme
Plasticine.js
Installation
$ npm install plasticine.jsor
$ npm i plasticine.jsSyntax:
| 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