@bizone-ai/json-transform
Version:
JSON transformers JavaScript implementation
32 lines (22 loc) • 649 B
Markdown
//img.shields.io/npm/v/@bizone-ai/json-transform.svg)
[ ](https://Bizone-ai.github.io/json-transform/) JavaScript implementation (~20kB)
`npm install @bizone-ai/json-transform`
```typescript
(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
[ ](./LICENSE)
![](https: