{"name":"retext-stringify","version":"3.0.0","description":"retext plugin to serialize prose","license":"MIT","keywords":["unified","retext","retext-plugin","plugin","natural","language","text","concrete","syntax","tree","cst","stringify","serialize","compile"],"homepage":"https://github.com/retextjs/retext","repository":{"type":"git","url":"git+https://github.com/retextjs/retext.git#main"},"bugs":{"url":"https://github.com/retextjs/retext/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","nlcst-to-string":"^3.0.0","unified":"^10.0.0"},"scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"_id":"retext-stringify@3.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-arEkCFZfQcTU0A3mdxa6gLVAB3HVeF7/198mXnSEdC1FH0cbnMLJF9QHZ3+9NctmWn4NLNckrjIWouj3iGP82g==","shasum":"70b2ae8df8f58488c13c9aa415296aceb3107b33","tarball":"http://registry-npm.ywwl.com/retext-stringify/download/retext-stringify-3.0.0.tgz","fileCount":4,"unpackedSize":7084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8VLqCRA9TVsSAnZWagAA/hcP/00reKZodx1nXcnF0Dvx\n6Q/xgqDtlAsnbU9psxLeA9kwCfSHe4Cz1MKYmDuLbSWqE1xsN1LQduZ8SKiY\n6uaJYeOQvIil2TlDXAHZ4l7UUzwdbIUcBPXDHXBCj+g4ibA2yeV2k9TJDluj\nEwc8iPfz+tJO2THVy1jDflBmG4T37TprtA6TIe4rVjVa6NPsQEaGWl31Rsql\nMdTUH99QhE0U5hRqC7uiAo7j5dexuVV4Kr7eGcxSL3xXtxo17/uCGkgErOpA\njJ/EAJMSnmmHsSJ3PtzYKJbFoWvnR7RdSAw6WOKQeV+DNvTVlPu2tyfGNSIC\ncCS5t4PsrtbOiUAkxkYxonPAQAbVVTQldPVvN1qiAJ91FIAB24YROVz5u6SG\nyVD/7IXXxqtOwdf1mLeBsIK7wXG+KVr3G9beiM8BdEhP03mLEmyJhNup7fIS\nl7O5sP4OWsi3HT6MwRC1/wPYlzYgKB+K5RaV16Wg0i2lmDAuRzrQGYt0CUsH\nrnSMztx4fSps3SoKEwIy0MT5it6eIFjMFMyO+BpnlGv1OTPQ2T/4JKsEONHl\n+XPxd0h7bdPEfKSl0qW613LxoAscE4zjx10X+VOBoFA6RHfJdVZixbmcmGE6\nYlj8B/2cUgsLk9UiMjsTltosrKVX+U5COOZdNNsmPaQ8yx1hOvH6xhI0A96m\nVHAO\r\n=uPra\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIClJ+r2Gr7+ZuEG+zKyh91Q9DS0QKrr4jHUZpI8747fhAiBwONyIPlKpTheU9Jd6BcKb3Zc0DAt07CJfL20pAocMmA=="}],"size":2557,"noattachment":false,"key":"/retext-stringify/-/retext-stringify-3.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/retext-stringify_3.0.0_1626428137947_0.1070563490171581"},"_hasShrinkwrap":false,"readme":"# retext-stringify\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n**[retext][]** plugin to add support for serializing natural language.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`unified().use(retextStringify)`](#unifieduseretextstringify)\n*   [Syntax tree](#syntax-tree)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [Sponsor](#sponsor)\n*   [License](#license)\n\n## What is this?\n\nThis package is a [unified][] ([retext][]) plugin that defines how to take a\nsyntax tree as input and turn it into serialized natural language.\nWhen it’s used, natural language is serialized as the final result.\n\nSee [the monorepo readme][retext] for info on what the retext ecosystem is.\n\n## When should I use this?\n\nThis plugin adds support to unified for serializing natural language.\nYou can alternatively use [`retext`][retext-core] instead, which combines\nunified, [`retext-latin`][retext-latin], and this plugin.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install retext-stringify\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport retextStringify from 'https://esm.sh/retext-stringify@4'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import retextStringify from 'https://esm.sh/retext-stringify@4?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport retextEmoji from 'retext-emoji'\nimport retextLatin from 'retext-latin'\nimport retextProfanities from 'retext-profanities'\nimport retextStringify from 'retext-stringify'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await unified()\n  .use(retextLatin)\n  .use(retextProfanities)\n  .use(retextEmoji, {convert: 'encode'})\n  .use(retextStringify)\n  .process('He’s set on beating your butt for sheriff! :cop:')\n\nconsole.log(String(file))\nconsole.error(reporter(file))\n```\n\nYields:\n\n```txt\nHe’s set on beating your butt for sheriff! 👮\n```\n\n```txt\n1:26-1:30 warning Be careful with `butt`, it’s profane in some cases butt retext-profanities\n\n⚠ 1 warning\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is [`retextStringify`][api-retext-stringify].\n\n### `unified().use(retextStringify)`\n\nAdd support for serializing natural language.\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\nNothing (`undefined`).\n\n## Syntax tree\n\nThe syntax tree used in retext is [nlcst][].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line, `retext-stringify@^4`,\ncompatible with Node.js 16.\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`retextjs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## Sponsor\n\nSupport this effort and give back by sponsoring on [OpenCollective][collective]!\n\n<table>\n<tr valign=\"middle\">\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://vercel.com\">Vercel</a><br><br>\n  <a href=\"https://vercel.com\"><img src=\"https://avatars1.githubusercontent.com/u/14985020?s=256&v=4\" width=\"128\"></a>\n</td>\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://motif.land\">Motif</a><br><br>\n  <a href=\"https://motif.land\"><img src=\"https://avatars1.githubusercontent.com/u/74457950?s=256&v=4\" width=\"128\"></a>\n</td>\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://www.hashicorp.com\">HashiCorp</a><br><br>\n  <a href=\"https://www.hashicorp.com\"><img src=\"https://avatars1.githubusercontent.com/u/761456?s=256&v=4\" width=\"128\"></a>\n</td>\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://www.gitbook.com\">GitBook</a><br><br>\n  <a href=\"https://www.gitbook.com\"><img src=\"https://avatars1.githubusercontent.com/u/7111340?s=256&v=4\" width=\"128\"></a>\n</td>\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://www.gatsbyjs.org\">Gatsby</a><br><br>\n  <a href=\"https://www.gatsbyjs.org\"><img src=\"https://avatars1.githubusercontent.com/u/12551863?s=256&v=4\" width=\"128\"></a>\n</td>\n</tr>\n<tr valign=\"middle\">\n</tr>\n<tr valign=\"middle\">\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://www.netlify.com\">Netlify</a><br><br>\n  <!--OC has a sharper image-->\n  <a href=\"https://www.netlify.com\"><img src=\"https://images.opencollective.com/netlify/4087de2/logo/256.png\" width=\"128\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://www.coinbase.com\">Coinbase</a><br><br>\n  <a href=\"https://www.coinbase.com\"><img src=\"https://avatars1.githubusercontent.com/u/1885080?s=256&v=4\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://themeisle.com\">ThemeIsle</a><br><br>\n  <a href=\"https://themeisle.com\"><img src=\"https://avatars1.githubusercontent.com/u/58979018?s=128&v=4\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://expo.io\">Expo</a><br><br>\n  <a href=\"https://expo.io\"><img src=\"https://avatars1.githubusercontent.com/u/12504344?s=128&v=4\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://boostnote.io\">Boost Note</a><br><br>\n  <a href=\"https://boostnote.io\"><img src=\"https://images.opencollective.com/boosthub/6318083/logo/128.png\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://markdown.space\">Markdown Space</a><br><br>\n  <a href=\"https://markdown.space\"><img src=\"https://images.opencollective.com/markdown-space/e1038ed/logo/128.png\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://www.holloway.com\">Holloway</a><br><br>\n  <a href=\"https://www.holloway.com\"><img src=\"https://avatars1.githubusercontent.com/u/35904294?s=128&v=4\" width=\"64\"></a>\n</td>\n<td width=\"10%\"></td>\n<td width=\"10%\"></td>\n</tr>\n<tr valign=\"middle\">\n<td width=\"100%\" align=\"center\" colspan=\"8\">\n  <br>\n  <a href=\"https://opencollective.com/unified\"><strong>You?</strong></a>\n  <br><br>\n</td>\n</tr>\n</table>\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/retextjs/retext/workflows/main/badge.svg\n\n[build]: https://github.com/retextjs/retext/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/retextjs/retext.svg\n\n[coverage]: https://codecov.io/github/retextjs/retext\n\n[downloads-badge]: https://img.shields.io/npm/dm/retext-stringify.svg\n\n[downloads]: https://www.npmjs.com/package/retext-stringify\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/retext-stringify.svg\n\n[size]: https://bundlephobia.com/result?p=retext-stringify\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/retextjs/retext/discussions\n\n[health]: https://github.com/retextjs/.github\n\n[contributing]: https://github.com/retextjs/.github/blob/main/contributing.md\n\n[support]: https://github.com/retextjs/.github/blob/main/support.md\n\n[coc]: https://github.com/retextjs/.github/blob/main/code-of-conduct.md\n\n[license]: https://github.com/retextjs/retext/blob/main/license\n\n[author]: https://wooorm.com\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[nlcst]: https://github.com/syntax-tree/nlcst\n\n[retext]: https://github.com/retextjs/retext\n\n[retext-core]: https://github.com/retextjs/retext/tree/main/packages/retext\n\n[retext-latin]: https://github.com/retextjs/retext/tree/main/packages/retext-latin\n\n[typescript]: https://www.typescriptlang.org\n\n[unified]: https://github.com/unifiedjs/unified\n\n[api-retext-stringify]: #unifieduseretextstringify\n","publish_time":1626428138280,"_cnpm_publish_time":1626428138280,"dist-tags":{"latest":"4.0.0"}}