1.0.0 • Published 8 months ago

@jtorm/data-parser v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
gitlab
Last release
8 months ago

jTorm Data Parser

Install

npm install @jtorm/data-parser

Options

Warning, changing the defaults will break UI libraries if not handled correctly. Best way to do this is through a before plugin setting the new options, and in an after plugin revert to the default options within the jTorm handler.

Access current key in object or array

In some cases it can be desirable to just map the current key from an object or array. jTormDataParser.current = '@c';

Append

Select a key with for example a part of it variable and a part static text. jTormDataParser.append = '+';

Object Separator

Target a specific key in an object or array. jTormDataParser.objectSeparator = '.';

Example

body->append->ui {
    c: typeVar + '.default';
}