retext-stringify
Compiler for unified.
Stringifies nlcst syntax trees to text.
Used in the retext processor but can be used on its own as
well.
Announcing the unified collective! 🎉
Read more about it on Medium »
Installation
npm:
npm install retext-stringify
Usage
var unified = require('unified')
var stream = require('unified-stream')
var english = require('retext-english')
var stringify = require('retext-stringify')
var emoji = require('retext-emoji')
var processor = unified()
.use(english)
.use(emoji, {convert: 'encode'})
.use(stringify)
process.stdin.pipe(stream(processor)).pipe(process.stdout)
Table of Contents
API
processor.use(stringify)
Configure the processor
to stringify nlcst syntax trees
to text.
There is no configuration for the parser.
License
MIT © Titus Wormer