uniorg-stringify
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

uniorg-stringify

uniorg plugin to serialize org-mode.

Install

npm install uniorg-stringify

Use

import { unified } from 'unified';
import uniorgParse from 'uniorg-parse';
import { uniorgStringify } from 'uniorg-stringify';

const result = unified()
  .use(uniorgParse)
  .use(uniorgStringify)
  .processSync('Some /emphasis/, *importance*, and ~code~.');

console.log(String(result)); //=> Some /emphasis/, *importance*, and ~code~.

API

processor().use(uniorgStringify)

uniorg plugin to serialize uniast into string.

stringify(uniast)

Convert uniorg AST into a string.

import { parse } from 'uniorg-parse/lib/parser';
import { stringify } from 'uniorg-stringify/lib/stringify';

stringify(parse(`* headline`));

License

GNU General Public License v3.0 or later

Package Sidebar

Install

npm i uniorg-stringify

Weekly Downloads

15

Version

1.1.1

License

GPL-3.0-or-later

Unpacked Size

57.3 kB

Total Files

9

Last publish

Collaborators

  • rasendubi
  • thomasfkjorna