unified

Project: unifiedjs/unified-stream

Package: unified-stream@1.0.6

  1. Dependencies: 1·Dependents: 18
  2. Streaming interface for unified processors
  1. unified 149

unified-stream

Build Coverage Downloads Sponsors Backers Chat

Streaming interface to unified processors.

Note that the interface is streaming, but the code buffers.

Install

npm:

npm install unified-stream

Use

The below example pipes stdin, into an HTML formatter, to stdout.

var stream = require('unified-stream')
var rehype = require('rehype')
var format = require('rehype-format')

process.stdin.pipe(stream(rehype().use(format))).pipe(process.stdout)

API

createStream(processor)

Create a readable/writable stream that transforms with processor.

Contribute

See contributing.md in unifiedjs/.github for ways to get started. See support.md for ways to get help.

This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.

License

MIT © Titus Wormer