Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove streaming interface from core #26

Closed
wooorm opened this issue Feb 11, 2017 · 0 comments
Closed

Remove streaming interface from core #26

wooorm opened this issue Feb 11, 2017 · 0 comments
Labels
🗄 area/interface This affects the public interface 💪 phase/solved Post is done 🧑 semver/major This is a change 🦋 type/enhancement This is great to have

Comments

@wooorm
Copy link
Member

wooorm commented Feb 11, 2017

Now:

var unified = require('unified');
var parse = require('rehype-parse');
var rehype2remark = require('rehype-remark');
var stringify = require('remark-stringify');

var processor = unified()
  .use(parse)
  .use(rehype2remark)
  .use(stringify);

process.stdin
  .pipe(processor)
  .pipe(process.stdout);

Future:

 var unified = require('unified');
+var stream = require('unified-stream');
 var parse = require('rehype-parse');
 var rehype2remark = require('rehype-remark');
 var stringify = require('remark-stringify');
 
 var processor = unified()
   .use(parse)
   .use(rehype2remark)
   .use(stringify);
 
 process.stdin
-  .pipe(processor)
+  .pipe(stream(processor))
   .pipe(process.stdout);
@wooorm wooorm mentioned this issue Feb 20, 2017
11 tasks
@wooorm wooorm closed this as completed in 111d3c6 Feb 23, 2017
@wooorm wooorm added ⛵️ status/released 🗄 area/interface This affects the public interface 🦋 type/enhancement This is great to have 🧑 semver/major This is a change labels Aug 10, 2019
@wooorm wooorm added the 💪 phase/solved Post is done label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface 💪 phase/solved Post is done 🧑 semver/major This is a change 🦋 type/enhancement This is great to have
Development

No branches or pull requests

1 participant