Wondering what’s next for npm?Check out our public roadmap! »

json-schema-spell-checker

2.0.1 • Public • Published

json-schema-spell-checker

This CLI allows you to provide a JSONPath expression and run mdspell against any matching lines.

This tool is currently in alpha and has primarily been tested against OpenAPI files. PRs are welcome!

Installation

npm install -g json-schema-spell-checker

Usage

Check against specific field names at any depth:

json-schema-spell-checker -f 'description,title' /path/to/openapi.json

Alternatively, you can specify a JSONPath expression yourself

json-schema-spell-checker -j "$..[description,title]" /path/to/openapi.json

If you have words that aren't a spelling mistake but aren't in the dictionary, add them to a .spelling file (one word per line) in the current folder. Alternatively, you can provide a path with -s

json-schema-spell-checker -s /path/to/.spelling -f 'description,title' /path/to/openapi.json

Install

npm i json-schema-spell-checker

DownloadsWeekly Downloads

63

Version

2.0.1

License

MIT

Unpacked Size

10.9 kB

Total Files

13

Last publish

Collaborators

  • avatar