transform-object-stream

A streaming transformer for objects.

Usage no npm install needed!

<script type="module">
  import transformObjectStream from 'https://cdn.skypack.dev/transform-object-stream';
</script>

README

transform-object-stream

A pure TypeScript/JavaScript library for streaming objects using Web API Streams. Includes primitive support for piping to NodeJS Streams.

Usage

Install it from the npm repository:

npm install --save transform-object-stream

Then require it in your project:

// Simple example of convenience function. See tests and api for more advanced functionality.
const { transformObjects } = require('transform-object-stream')

async function main () {
  const results = await transformObjects(objects, { rootName: 'root' })
}

Package also exports as ES Module with TS definitions for use with Deno and TypeScript.

API

See the API documentation for complete information.