Skip to content

aaronhuggins/transform-object-stream

Repository files navigation

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.

Releases

No releases published

Packages

No packages published