# @bizone-ai/json-transform

![](https://img.shields.io/npm/v/@bizone-ai/json-transform.svg)

[JSON transformers](https://jsot.io) JavaScript implementation (~20kB)

# Installation

`npm install @bizone-ai/json-transform`

# Usage

```typescript
(async() => { // in an async context
  
  const transformer = new JsonTransformer("$$lower:$.x")
  expect(
    await transformer.transform({x: "HELLO"})
  ).toEqual("hello");
  
})();
```

# Peer dependencies
Notice the following peer dependencies that are required by some of the functions:
 - fast-json-patch
 - fast-xml-parser
 - js-yaml
 - json-pointer

# License
[MIT](./LICENSE)