JSON transformers JavaScript implementation (~20kB)
npm install @nlighten/json-transform
(async() => { // in an async context
const transformer = new JsonTransformer("$$lower:$.x")
expect(
await transformer.transform({x: "HELLO"})
).toEqual("hello");
})();
Notice the following peer dependencies that are required by some of the functions:
- fast-json-patch
- js-yaml
- json-pointer
- xml2js