{"name":"retext","version":"6.0.2","description":"Natural language processor powered by plugins","license":"MIT","keywords":["natural","language","concrete","syntax","tree","cst","parse","stringify","process"],"dependencies":{"retext-latin":"^2.0.0","retext-stringify":"^2.0.0","unified":"^7.0.0"},"homepage":"https://github.com/retextjs/retext","repository":{"type":"git","url":"https://github.com/retextjs/retext/tree/master/packages/retext"},"bugs":{"url":"https://github.com/retextjs/retext/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"scripts":{},"_id":"retext@6.0.2","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-CxpBywVxRjzikCRrC6Z87KzqzuSbCDLLqpQSzjzE0xlzPaZemZiywCHEzX7eSWRdXY5006rYgD7Zm4BCyzFxvg==","shasum":"005df1c83bdd6a238f98cd60899f4c140f67b26a","tarball":"http://registry-npm.ywwl.com/retext/download/retext-6.0.2.tgz","fileCount":3,"unpackedSize":5978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc98fSCRA9TVsSAnZWagAAYfIQAKLiHUUwPahtdCrBeL7Y\nXL6AoyOTwYr4eRNOe7JVyvVDWZaSeAEygJqaYH4gUK1IjWAbb0Kdd4iyfrnI\nu48Be9rpcpGhFoxGcd8dfNHktzrmryTjD3c3OvA/X+P+meGNJkX0Iwn2DxtY\nCp4Leq9pKKzVLnXCxCl6JaX4oNPBgnjaneDqhimDu2n16QPREAOG0cTmXNE3\n6FISOsHLqIVpf2pMsh8/0vv8UL9bswWIWP5cobr66vV7mp7GP9FvI9YzbuAU\no0SkSYVOz0WuOou6rtW1LUxJ7tTEQYszjj6KTcC9tjz0bTCW2aYk0BfhazkU\nm9vmjY8vWiTe6FV9jf4jSHKUTQCKydaAv35mGF/WqZfVFm7xn4ZUfvUDUHiu\nKW9N4FmmZAEW9ILrg+S9gpfzSOZfAvorCvC80MEtOYj7AuDc7fFjZs+5npUC\nyFrVmjON0Er8LBd4p3KjrlbcSzLfIggbfwNC/ghDWI1cEw1YLWDc04U36xtR\nT1+IKCxVhgw1egIdek/6cXY1G7gyj5Rn50Lk2TPR094kP+eHgvODUabw1s6H\nfSQcwJILC6zhYWVUVrO8n7OKuXY8tppCrKrKTcXnj5gP77g2eq9RBG6jYPSX\nnBYTrgavWyjS4LZ8vQR0Wt+H6InsE4ZOq6UI18t0DR0pbgq+qkTQj+Cm8GEB\naLUj\r\n=r3CN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYvJK6xRduCdYLRiHEUTEGnlTSeevIa0O2/mie4ZnGeAiBEUMyKZjXLUraazwEjabT/V0vuwylSlRjvp8FY1fHNJw=="}],"size":2266,"noattachment":false,"key":"/retext/-/retext-6.0.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/retext_6.0.2_1559742417232_0.5755057989240802"},"_hasShrinkwrap":false,"readme":"# retext\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**[unified][]** processor to add support for parsing and serializing\nLatin-script 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    *   [`retext()`](#retext-1)\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][] processor with support for parsing Latin-script\nnatural language as input and serializing it as output by using unified with\n[`retext-latin`][retext-latin] and [`retext-stringify`][retext-stringify].\n\nSee [the monorepo readme][retext] for info on what the retext ecosystem is.\n\n## When should I use this?\n\nYou can use this package when you want to use unified, have Latin-script as\ninput, and as output.\nThis package is a shortcut for\n`unified().use(retextLatin).use(retextStringify)`.\nWhen the input isn’t Latin-script or is English or Dutch (meaning you don’t\nneed `retext-latin`), it’s recommended to use `unified` directly.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install retext\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {retext} from 'https://esm.sh/retext@9'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {retext} from 'https://esm.sh/retext@9?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {retext} from 'retext'\nimport retextEmoji from 'retext-emoji'\nimport retextProfanities from 'retext-profanities'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await retext()\n  .use(retextEmoji, {convert: 'encode'})\n  .use(retextProfanities)\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 the identifier [`retext`][api-retext].\nThere is no default export.\n\n### `retext()`\n\nCreate a new unified processor that already uses\n[`retext-latin`][retext-latin] and [`retext-stringify`][retext-stringify].\n\nYou can add more plugins with `use`.\nSee [`unified`][unified] for more information.\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@^9`, compatible\nwith 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.svg\n\n[downloads]: https://www.npmjs.com/package/retext\n\n[size-badge]: https://img.shields.io/bundlejs/size/retext\n\n[size]: https://bundlejs.com/?q=retext\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-latin]: https://github.com/retextjs/retext/tree/main/packages/retext-latin\n\n[retext-stringify]: https://github.com/retextjs/retext/tree/main/packages/retext-stringify\n\n[retext]: https://github.com/retextjs/retext\n\n[typescript]: https://www.typescriptlang.org\n\n[unified]: https://github.com/unifiedjs/unified\n\n[api-retext]: #retext-1\n","publish_time":1559742417374,"_cnpm_publish_time":1559742417374,"dist-tags":{"latest":"9.0.0","next":"1.0.0-rc.4"}}