Skip to content
Streaming interface for unified processors
JavaScript
Branch: master
Clone or download
Latest commit 7aee889 Jun 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Initial commit Feb 23, 2017
.gitignore Add `yarn.lock` to `.gitignore` May 2, 2018
.npmrc
.prettierignore
.travis.yml
index.js Refactor code-style Jun 13, 2019
license
package.json 1.0.5 Jun 26, 2019
readme.md
test.js

readme.md

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, organisation, or community you agree to abide by its terms.

License

MIT © Titus Wormer

You can’t perform that action at this time.