unified

Project: retextjs/retext

Package: retext-stringify@2.0.4

  1. Dependencies: 1·Dependents: 5
  2. nlcst to text compiler for retext
  1. tree 42
  2. syntax 32
  3. stringify 18
  4. text 17
  5. language 12
  6. natural 10
  7. cst 8
  8. concrete 5

retext-stringify

Build Coverage Downloads Size Sponsors Backers Chat

retext plugin to serialize natural language. Compiler for unified. Serializes nlcst syntax trees.

Sponsors

Support this effort and give back by sponsoring on OpenCollective!

Gatsby 🥇

Vercel 🥇

Netlify

Holloway

ThemeIsle

Boost Hub

Expo


You?

Install

npm:

npm install retext-stringify

Use

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)

API

processor.use(stringify)

Serialize nlcst syntax trees. There is no configuration.

Contribute

See contributing.md in retextjs/.github for ways to get started. See support.md for ways to get help. Ideas for new plugins and tools can be posted in retextjs/ideas.

A curated list of awesome retext resources can be found in awesome retext.

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