JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q43081F
  • License MIT

JSON transformers JavaScript implementation

Package Exports

    Readme

    @nlighten/json-transform

    JSON transformers JavaScript implementation (~20kB)

    Installation

    npm install @nlighten/json-transform

    Usage

    (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
    • js-yaml
    • json-pointer
    • xml2js

    License

    MIT