npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

retext-stringify

2.0.2 • Public • Published

retext-stringify Build Coverage Downloads Size Chat

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 »

Sponsors



🥇 ZEIT


🥇 Gatsby


🥉 Compositor


Holloway




You?

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

install

npm i retext-stringify

Downloadsweekly downloads

30,808

version

2.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability