{"_id":"@343dev/languagetool-node","_rev":"5-2aad3c093a15d32ccc9525d4f2209d93","name":"@343dev/languagetool-node","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.4":{"name":"@343dev/languagetool-node","version":"1.0.4","author":{"url":"https://github.com/343dev","name":"Andrey Warkentin"},"license":"MIT","_id":"@343dev/languagetool-node@1.0.4","maintainers":[{"name":"343dev","email":"343dev@gmail.com"}],"homepage":"https://github.com/343dev/languagetool-node#readme","bugs":{"url":"https://github.com/343dev/languagetool-node/issues"},"bin":{"languagetool-node":"index.js"},"dist":{"shasum":"8d619a402a1de4fd6ddb7e28942057b68fce7c91","tarball":"https://registry.npmjs.org/@343dev/languagetool-node/-/languagetool-node-1.0.4.tgz","fileCount":16,"integrity":"sha512-UEkFoRTXZnjRXo35QmiX0mCgvu82LV17zYPmMfH+sFQbwaNWFLgOyDd6B5eqL7Lc1Z3JHwVI/WmXaUDKElmZvw==","signatures":[{"sig":"MEQCIGvlQDezZWmclInflrQx5/FSgczCG3QedVywChDIePSoAiBzsJeEd8RVFwL0esZ7gARykAxJL19iyPrPB9ILrOA/NQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":102619},"main":"index.js","husky":{"hooks":{"pre-commit":"lint-staged","post-commit":"git update-index --again"}},"gitHead":"b567a79a5cdb61d128fc86e53472240c3de3d014","scripts":{"lint":"eslint --cache ./","test":"echo \"Error: no test specified\" && exit 1","postinstall":"node install.js"},"_npmUser":{"name":"343dev","email":"343dev@gmail.com"},"repository":{"url":"git+https://github.com/343dev/languagetool-node.git","type":"git"},"_npmVersion":"9.5.0","description":"Node.js wrapper for LanguageTool","directories":{},"lint-staged":{"*.js":["eslint --fix --cache"]},"_nodeVersion":"18.15.0","dependencies":{"ora":"3.4.0","axios":"0.21.2","vfile":"4.0.0","progress":"2.0.3","deepmerge":"3.2.0","vfile-location":"2.0.4","vfile-reporter":"5.1.1","node-stream-zip":"1.8.0","@funboxteam/diamonds":"6.6.0","@funboxteam/free-port-finder":"3.1.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"1.3.1","eslint":"7.32.0","lint-staged":"11.0.0","@funboxteam/eslint-config":"7.3.0"},"_npmOperationalInternal":{"tmp":"tmp/languagetool-node_1.0.4_1693768041437_0.1828364284561017","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@343dev/languagetool-node","version":"2.0.0","keywords":["spellcheck","grammar","spelling","languagetool","grammar-checker"],"author":{"url":"https://github.com/343dev","name":"Andrey Warkentin"},"license":"MIT","_id":"@343dev/languagetool-node@2.0.0","maintainers":[{"name":"343dev","email":"cccode@duck.com"}],"homepage":"https://github.com/343dev/languagetool-node#readme","bugs":{"url":"https://github.com/343dev/languagetool-node/issues"},"bin":{"languagetool-node":"index.js"},"dist":{"shasum":"166a6a526b452dadeadfad8156352716b81779f5","tarball":"https://registry.npmjs.org/@343dev/languagetool-node/-/languagetool-node-2.0.0.tgz","fileCount":20,"integrity":"sha512-Up1PTI49zJJKmwAdIRc6AjZjhaa57/8bSM02JjB5drnwEQIPnmvCFjmlH07/STJDHfO7mwbf29XSZTsUU69zVQ==","signatures":[{"sig":"MEUCIQCVxAtajzvMcslu7yt9K3WfwNCQZ4QNFAfnBVmqhAJedwIgZfvhzVn3DGbOE46MqJKGE6Mz6rEDULV4/u/b5GGVOmA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":105194},"type":"module","engines":{"node":">=18.17"},"exports":"./index.js","gitHead":"e37c843718f1ceb8933719089dd7ebeb4a45cef9","scripts":{"lint":"eslint .","test":"echo \"Error: no test specified\" && exit 1","postinstall":"node install.js","update-git-hooks":"npx simple-git-hooks"},"_npmUser":{"name":"343dev","email":"cccode@duck.com"},"repository":{"url":"git+https://github.com/343dev/languagetool-node.git","type":"git"},"_npmVersion":"10.2.4","description":"Node.js wrapper for LanguageTool","directories":{},"lint-staged":{"*.js":"eslint --fix"},"_nodeVersion":"20.11.1","dependencies":{"vfile":"^6.0.1","progress":"^2.0.3","deepmerge":"^4.3.1","nanospinner":"^1.1.0","vfile-location":"^5.0.2","vfile-reporter":"^8.1.0","node-stream-zip":"^1.15.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","lint-staged":"^15.2.2","eslint-config-xo":"^0.44.0","simple-git-hooks":"^2.11.0"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/languagetool-node_2.0.0_1710955669345_0.6700141317109864","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@343dev/languagetool-node","version":"2.0.2","keywords":["spellcheck","grammar","spelling","languagetool","grammar-checker"],"author":{"url":"https://github.com/343dev","name":"Andrey Warkentin"},"license":"MIT","_id":"@343dev/languagetool-node@2.0.2","maintainers":[{"name":"343dev","email":"343dev@gmail.com"}],"homepage":"https://github.com/343dev/languagetool-node#readme","bugs":{"url":"https://github.com/343dev/languagetool-node/issues"},"bin":{"languagetool-node":"index.js"},"dist":{"shasum":"fc8043967e94773c80bfe75574a0663bc7445886","tarball":"https://registry.npmjs.org/@343dev/languagetool-node/-/languagetool-node-2.0.2.tgz","fileCount":20,"integrity":"sha512-1CAlTKJptoeD+oL6rV4V5ai9+GqgeU1eLRKOA6DpLxWuJpvTW252DmKND2JkQYwf3SrcVWpFwQQAJ891SOIxBQ==","signatures":[{"sig":"MEUCIGwc3L2uRmcGwipwOGuN+7K7YV+mxhiCL+qSitvGXPtyAiEAk2WXgcJiK0sXQOpfq+NHEQMkxnob/ABSbUOK1OaZy5w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":105601},"type":"module","engines":{"node":">=18.17"},"exports":"./index.js","gitHead":"0354bd525cb50a25b7f53c06c1d867c3400ba227","scripts":{"lint":"eslint .","test":"echo \"Error: no test specified\" && exit 1","postinstall":"node install.js","update-git-hooks":"npx simple-git-hooks"},"_npmUser":{"name":"343dev","email":"343dev@gmail.com"},"repository":{"url":"git+https://github.com/343dev/languagetool-node.git","type":"git"},"_npmVersion":"10.5.0","description":"Node.js wrapper for LanguageTool","directories":{},"lint-staged":{"*.js":"eslint --fix"},"_nodeVersion":"20.12.2","dependencies":{"vfile":"^6.0.2","progress":"^2.0.3","deepmerge":"^4.3.1","nanospinner":"^1.1.0","vfile-location":"^5.0.3","vfile-reporter":"^8.1.1","node-stream-zip":"^1.15.0"},"eslintConfig":{"extends":"@343dev"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","lint-staged":"^15.2.8","simple-git-hooks":"^2.11.1","@343dev/eslint-config":"^1.0.0"},"simple-git-hooks":{"pre-commit":"npx lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/languagetool-node_2.0.2_1723016921734_0.6267633749898234","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@343dev/languagetool-node","version":"3.0.0","keywords":["spellcheck","grammar","spelling","languagetool","grammar-checker"],"author":{"url":"https://github.com/343dev","name":"Andrey Warkentin"},"license":"MIT","_id":"@343dev/languagetool-node@3.0.0","maintainers":[{"name":"343dev","email":"343dev@gmail.com"}],"homepage":"https://github.com/343dev/languagetool-node#readme","bugs":{"url":"https://github.com/343dev/languagetool-node/issues"},"bin":{"languagetool-node":"index.js"},"dist":{"shasum":"49a64db056c88434af09bc682444989e5dd3204b","tarball":"https://registry.npmjs.org/@343dev/languagetool-node/-/languagetool-node-3.0.0.tgz","fileCount":14,"integrity":"sha512-OOa/Mz+F3KCIWHzrL1TBx58ILx4d2wDMZ8yTEhZGvfI53lxHtIbxElQH6JYikGHksIvoIxLm36WnkuToBglsmA==","signatures":[{"sig":"MEUCIQCzIBbETUCsCo3xhXVbHVA+D7SRYdBin0wJSC8WV7Sx/QIgSXXDzKF9doV9yg23VIdlE06ZHtDS2E7dmhO77KiSRGI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":99591},"type":"module","engines":{"node":">=22.22.1"},"exports":"./index.js","gitHead":"09ed91e2d378e58817aefb847a50a41803766b22","scripts":{"lint":"eslint .","test":"echo \"Error: no test specified\" && exit 1","enable-git-hooks":"git config core.hooksPath .githooks"},"_npmUser":{"name":"343dev","email":"343dev@gmail.com"},"repository":{"url":"git+https://github.com/343dev/languagetool-node.git","type":"git"},"_npmVersion":"11.17.0","description":"Node.js wrapper for LanguageTool","directories":{},"lint-staged":{"*.js":"eslint --fix"},"_nodeVersion":"24.14.1","dependencies":{"vfile":"6.0.3","deepmerge":"4.3.1","nanospinner":"1.2.2","vfile-location":"5.0.3","vfile-reporter":"8.1.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"10.5.0","lint-staged":"17.0.7","@343dev/eslint-config":"5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/languagetool-node_3.0.0_1782619656645_0.022256517509005924","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@343dev/languagetool-node","version":"3.0.1","description":"Node.js wrapper for LanguageTool","keywords":["spellcheck","grammar","spelling","languagetool","grammar-checker"],"license":"MIT","author":{"name":"Andrey Warkentin","url":"https://github.com/343dev"},"repository":{"type":"git","url":"git+https://github.com/343dev/languagetool-node.git"},"type":"module","exports":"./index.js","bin":{"languagetool-node":"index.js"},"scripts":{"lint":"eslint .","test":"echo \"Error: no test specified\" && exit 1","enable-git-hooks":"git config core.hooksPath .githooks"},"engines":{"node":">=18.17"},"devEngines":{"runtime":{"name":"node","version":">=22.22.1","onFail":"error"}},"dependencies":{"deepmerge":"4.3.1","nanospinner":"1.2.2","vfile":"6.0.3","vfile-location":"5.0.3","vfile-reporter":"8.1.1"},"devDependencies":{"@343dev/eslint-config":"5.0.0","eslint":"10.5.0","lint-staged":"17.0.7"},"lint-staged":{"*.js":"eslint --fix"},"gitHead":"30e35a2037de0297ab60b6d416fe4b6837931bbc","_id":"@343dev/languagetool-node@3.0.1","bugs":{"url":"https://github.com/343dev/languagetool-node/issues"},"homepage":"https://github.com/343dev/languagetool-node#readme","_nodeVersion":"24.14.1","_npmVersion":"11.17.0","dist":{"integrity":"sha512-doARjzyR3ax20SOrzpczeLlzURspXN4EKNT4mZrH8LA2KmIxwl1T5ccZfKR/MkWpOo3rxz8Z7l8KF9+A3CciVg==","shasum":"ca6b81deb72b22efce2bee3e06040d9fcb846bfc","tarball":"https://registry.npmjs.org/@343dev/languagetool-node/-/languagetool-node-3.0.1.tgz","fileCount":14,"unpackedSize":99711,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE+mjyXHY4hm5gR2Qjjsl/tJdPlj2B8Z7GDZ6NuQEDqsAiEAnbvM3d8+kkkITGP61/MTGwZ1ejBF8in+GKmyhrZm24s="}]},"_npmUser":{"name":"343dev","email":"343dev@gmail.com"},"directories":{},"maintainers":[{"name":"343dev","email":"343dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/languagetool-node_3.0.1_1782718682052_0.059735417525064616"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-03T19:07:21.302Z","modified":"2026-06-29T07:38:02.309Z","1.0.4":"2023-09-03T19:07:21.758Z","2.0.0":"2024-03-20T17:27:49.535Z","2.0.2":"2024-08-07T07:48:41.909Z","3.0.0":"2026-06-28T04:07:36.789Z","3.0.1":"2026-06-29T07:38:02.206Z"},"bugs":{"url":"https://github.com/343dev/languagetool-node/issues"},"author":{"name":"Andrey Warkentin","url":"https://github.com/343dev"},"license":"MIT","homepage":"https://github.com/343dev/languagetool-node#readme","keywords":["spellcheck","grammar","spelling","languagetool","grammar-checker"],"repository":{"type":"git","url":"git+https://github.com/343dev/languagetool-node.git"},"description":"Node.js wrapper for LanguageTool","maintainers":[{"name":"343dev","email":"343dev@gmail.com"}],"readme":"# @343dev/languagetool-node\n\n<img align=\"right\" width=\"124\" height=\"124\" src=\"./logo.png\">\n\n[![NPM Downloads](https://img.shields.io/npm/dw/@343dev/languagetool-node)](https://www.npmjs.com/package/@343dev/languagetool-node)\n[![npm](https://img.shields.io/npm/v/@343dev/languagetool-node.svg)](https://www.npmjs.com/package/@343dev/languagetool-node)\n\nCLI spell and grammar checker. Sends checks to an externally managed [LanguageTool](https://github.com/languagetool-org/languagetool) HTTP service.\n\n## Rationale\n\nSome projects have a lot of documentation inside the repos. Once we decided to start linting their grammar and check for spelling errors. But we didn’t want to send our docs to the unknown servers of the well-known services.\n\nHence, we decided to build our own CLI tool upon the LanguageTool.\n\n## Getting Started\n\nInstall the package:\n\n```shell\nnpm i -g @343dev/languagetool-node\n```\n\nRun a LanguageTool service. The easiest way is an official-style Docker image, for example:\n\n- [`meyay/languagetool`](https://hub.docker.com/r/meyay/languagetool)\n- [`erikvl87/languagetool`](https://hub.docker.com/r/erikvl87/languagetool)\n\nExample:\n\n```shell\ndocker run --rm -p 8081:8081 erikvl87/languagetool\n```\n\nCheck the selected image’s documentation for its exposed port and configuration. The CLI defaults to `http://127.0.0.1:8081`. If your service runs elsewhere, set `languageTool.url` in `~/.languagetoolrc.js` (see below).\n\n## Usage\n\nThe tool can check the passed files or the text from STDIN.\n\nCheck files:\n\n```shell\nlanguagetool-node README.md CHANGELOG.md\n```\n\nCheck files defined using globs:\n\n```shell\nlanguagetool-node ~/project1/**/*.txt ~/project2/*.md\n```\n\nCheck the text from STDIN:\n\n```shell\necho \"Insert your text here .. or check this textt. LanguageTool 4.0 were releasd on Thursday 29 december 2017.\" | languagetool-node\n```\n\nRunning `languagetool-node` with no arguments (and no piped stdin) prints usage and exits non-zero, so you can always rediscover how to drive the tool.\n\n### Options\n\n- `-h`, `--help` — Print usage and exit. Takes precedence over everything else.\n- `-V`, `--version` — Print the CLI version and exit.\n- `-u`, `--url <url>` — Override the LanguageTool service URL for this run only (beats config).\n\nThe `--url` flag accepts the same forms as `languageTool.url` in config: an origin (`http://127.0.0.1:8081`), a URL with a path prefix (`https://example.com/languagetool`), or a URL with a trailing slash (trimmed). `/v2/check` is appended automatically.\n\n```shell\nlanguagetool-node --url http://127.0.0.1:9090 README.md\n```\n\n<details>\n  <summary>Output example</summary>\n\n  ```shell\n  $ echo \"Insert your text here .. or check this textt. LanguageTool 4.0 were releasd on Thursday 29 december 2017.\" | languagetool-node\n\n  <stdin>\n    1:23  warning  Two consecutive dots                                        typographical  spell\n  Context: «Insert your text here .. or check this textt. LanguageTool 4.0 w...»\n  Possible replacements: «.»\n\n    1:26  warning  This sentence does not start with an uppercase letter       typographical  spell\n  Context: «Insert your text here .. or check this textt. LanguageTool 4.0 were...»\n  Possible replacements: «Or»\n\n    1:40  warning  Possible spelling mistake found                             misspelling    spell\n  Context: «Insert your text here .. or check this textt. LanguageTool 4.0 were releasd on Thurs...»\n  Possible replacements: «text, texts, text t»\n\n    1:69  warning  Possible spelling mistake found                             misspelling    spell\n  Context: «...check this textt. LanguageTool 4.0 were releasd on Thursday 29 december 2017. »\n  Possible replacements: «released, release»\n\n    1:80  warning  The date 29 december 2017 is not a Thursday, but a Friday.  inconsistency  spell\n  Context: «...textt. LanguageTool 4.0 were releasd on Thursday 29 december 2017. »\n\n  ⚠ 5 warnings\n  ```\n</details>\n\n## External configuration file\n\nIt’s possible to override default options by creating file `~/.languagetoolrc.js`. It will be merged with default config.\n\nExample of external config:\n\n```javascript\nexport default {\n  // LanguageTool HTTP service base URL. `/v2/check` is appended to it,\n  // so a path prefix is preserved, e.g. `https://example.com/languagetool`\n  // becomes `https://example.com/languagetool/v2/check`.\n  languageTool: {\n    url: 'http://127.0.0.1:8081',\n  },\n  // allowed words (regexps are supported)\n  ignore: [\n    '(T|O)TF',\n  ],\n};\n```\n\n## Credits\n\nThe picture for the project was made by [Sergey Mylnikov](https://www.behance.net/s_mylnikov) & [Igor Garybaldi](https://pandabanda.com/).\n\n## Other projects\n\n- 🖼 [optimizt](https://github.com/343dev/optimizt) — CLI tool for image optimization: compresses PNG, JPEG, GIF, SVG, and creates AVIF/WebP\n- 📦 [harold](https://github.com/343dev/harold) — CLI tool that compares frontend project bundle sizes between snapshots\n- 🐳 [jailbot](https://github.com/343dev/jailbot) — Docker container wrapper with automatic filesystem path mounting\n- 📝 [markdown-lint](https://github.com/343dev/markdown-lint) — Markdown code style linter based on Prettier, Remark, and Typograf\n","readmeFilename":"README.md"}