{"_id":"@edemaine/codemirror-spell-checker","_rev":"3-c9168b0a1f91d49aadcf38c4f4eeb773","name":"@edemaine/codemirror-spell-checker","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.0":{"name":"@edemaine/codemirror-spell-checker","version":"0.0.0","description":"Tweaked spell checker for CodeMirror","keywords":["codemirror","code","mirror","spell","checker","checking","spellchecker","spellchecking","javascript"],"homepage":"https://github.com/edemaine/codemirror-spell-checker","main":"./src/js/spell-checker.js","license":"MIT","author":{"name":"Erik Demaine and Wes Cossick"},"bugs":{"url":"https://github.com/edemaine/codemirror-spell-checker/issues"},"dependencies":{"typo-js":"*"},"devDependencies":{"browserify":"*","debug":"*","eslint":"*","gulp":"3.9.1","gulp-clean-css":"*","gulp-concat":"*","gulp-debug":"*","gulp-eslint":"*","gulp-header":"*","gulp-jsbeautifier":"*","gulp-rename":"*","gulp-uglify":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"repository":{"type":"git","url":"git+https://github.com/edemaine/codemirror-spell-checker.git"},"gitHead":"95761914bacba9912d619bc6e94a6842e5a6edf2","_id":"@edemaine/codemirror-spell-checker@0.0.0","_nodeVersion":"10.8.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-6Ce1dF0cB5PmWAGEtHZA6YXwR9nrGd6S4yANt/TeHO283Wp1sYWQ5LNtWRNr5LQZxc3BZVpD5Ty+lOidNCQXAw==","shasum":"8fb523f71c34629242c2f8ed760858c065444d69","tarball":"https://registry.npmjs.org/@edemaine/codemirror-spell-checker/-/codemirror-spell-checker-0.0.0.tgz","fileCount":19,"unpackedSize":1754528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmRjxCRA9TVsSAnZWagAADzUP/i5ZPOvRr0wZxksZoc5e\n5yLwlzTmNjD73VPwbVAbtG/R3D4yGRtHtJyd4w5EeNCF59eAUz0NST6eyJgx\nBalh/astngpxzRzIwmt01o6L3iockICq6B9rRNlnpkPJoI6nZGdKAacU0sjx\nLLQoK0X2BaWgHvO9VlSb0hVOnjXYV/F9bSpk5bpu1OL3rLvxTQSNb2VIas5/\nvUMD75CVPO8rHlfXvn3Bv99Ry9SlU6J9w/HqpIfBDUYYcp4BGsEabAF0zirx\nxldTCEwrzSuufCye8wjYyT3z+IMgnplhSvrqVdgn/VrcSHORzHk+rUsmkFTj\nHdgyM3IMTyuHry6bFBCQ65b/Ak5E1rT/5G9KQyt/RIzIUXnC+GWBIocsTY2f\nHw7MnQ2StVlYqvCqCwfgXru65Q5Em5tnpG06SMDLZXbB/s/tP7/399DmvZ/g\nGhJWz/wkPM2JLmg4fTtnS77fMzTp0y0d4R3T3jIrEMIHE5oN7dFgAAspe+C2\naAHUwXqu5KIa+z6hgL3zg+3SLtXcFecDNVkKTZwdyXg/yLtmHvezsmDyyrqp\ncP25/fwpmC8p2rbf1vqzOxymnqg4LDkHRoB4/o/Hy+vjmvUTeYeOlhEXha0W\nmVeoFjRQ2pLe3nj37clrPWCFFCJZ7aBi4DyQSyzd5sibQ8d+rCRUE3W+a7cp\n0gCu\r\n=r401\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDd/n4hSwDOGj2RW2lZ4pbS5BtsihaAJjQLf4NkkC1HSAiEAlpHzHgrIrgMCgJ0GloMm8MjIbdb2udKDhvt8OPhloOM="}]},"maintainers":[{"name":"edemaine","email":"edemaine@mit.edu"}],"_npmUser":{"name":"edemaine","email":"edemaine@mit.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codemirror-spell-checker_0.0.0_1553537264866_0.12294211296647806"},"_hasShrinkwrap":false},"0.0.1":{"name":"@edemaine/codemirror-spell-checker","version":"0.0.1","description":"Tweaked spell checker for CodeMirror","keywords":["codemirror","code","mirror","spell","checker","checking","spellchecker","spellchecking","javascript"],"homepage":"https://github.com/edemaine/codemirror-spell-checker","main":"./src/js/spell-checker.js","license":"MIT","author":{"name":"Wes Cossick and Erik Demaine"},"bugs":{"url":"https://github.com/edemaine/codemirror-spell-checker/issues"},"dependencies":{"typo-js":"*"},"devDependencies":{"browserify":"*","debug":"*","eslint":"*","gulp":"3.9.1","gulp-clean-css":"*","gulp-concat":"*","gulp-debug":"*","gulp-eslint":"*","gulp-header":"*","gulp-jsbeautifier":"*","gulp-rename":"*","gulp-uglify":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"repository":{"type":"git","url":"git+https://github.com/edemaine/codemirror-spell-checker.git"},"gitHead":"3954cb164b932695c182f8dbaf7b3883912635a1","_id":"@edemaine/codemirror-spell-checker@0.0.1","_nodeVersion":"10.8.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-0+dhKvv4cDtPx0IgyTKQbo/5YqRb6OW0llQriQCvbh1OzWSj+aWLndIuq41JcsR5WMG8hy7M3+0TEsc85Vh+4A==","shasum":"c33611b6f7a9dda161d073e99c5c71ea49ac4144","tarball":"https://registry.npmjs.org/@edemaine/codemirror-spell-checker/-/codemirror-spell-checker-0.0.1.tgz","fileCount":19,"unpackedSize":1754976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmR44CRA9TVsSAnZWagAAvisP/j8n2HKHCvim7mYm4EXc\nmsvaEwuQKONm112HjUsWZcgZ+p9e0nHfMCMUvjpvPeOlrpy9gQzl8wbPGriM\nsHNmaNrKGbVWTY1GtIZB/8VAhcjz9nnZ+V6pGdZut9a7ThAH3b47hiMalHLC\nEY0BRGh3wSn4VbwEYHNu57NJ7eNNIKwf8icf441z79riUSTPeJGGkBEaBhkW\nacHKAeBhwo97/H2zRASFZAd8hA3A/QWpireahYYTpIv3ffw9FrP2LHGATskw\nS4+vCVFZdiynOVZ9qulRoDfjNGmqtHGCxEXyikePnHHM+DZ7OtNzyVUpN/L+\nRy6vBhy+LjdPcp2pw9TjK1MrlDpf+zCx76JRplfBi0kuXMJwCkm5KnB4h1EP\ne3D6rbt27wrTr8sA2YtLwV5Zbgxf8ynKmfD/WSXsYXEshyz4E0eANCrE3btE\nkH7e9RqdDdrN3uhHsVVy4L/sTBiCxNUv2d9yxBSwVIBrQ8PgnqqAU6pdSE4Q\ngDcjDNZ9PR2YzIFJ2xWzS09kH5+W7NaHqf151At7YosCVYC632GA1rmzQZma\nuv7Ki/7Yluo3pdHN1znhsgX7dchMA179A2/Ipz7cPClAc/O1V59ElpnGenIG\nd0r9+q9tWZcP/aVYG/0EWHS0Wpxws+P09nUC4MFMX4NhIO4hla8mKj7eHkjd\nn2wR\r\n=nu46\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3e6+TJMxJ1v0J9APjcDPWJKhrlI1kxz7CvCXFMt+FbAiEApUN/60IQaHGJ2VxsUUThLjR+1FaN9oht+TWn7zbFUF4="}]},"maintainers":[{"name":"edemaine","email":"edemaine@mit.edu"}],"_npmUser":{"name":"edemaine","email":"edemaine@mit.edu"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codemirror-spell-checker_0.0.1_1553538616206_0.935680442377488"},"_hasShrinkwrap":false},"0.0.2":{"name":"@edemaine/codemirror-spell-checker","version":"0.0.2","description":"Tweaked spell checker for CodeMirror","keywords":["codemirror","code","mirror","spell","checker","checking","spellchecker","spellchecking","javascript"],"homepage":"https://github.com/edemaine/codemirror-spell-checker","main":"./src/js/spell-checker.js","license":"MIT","author":{"name":"Wes Cossick and Erik Demaine"},"bugs":{"url":"https://github.com/edemaine/codemirror-spell-checker/issues"},"dependencies":{"typo-js":"*"},"devDependencies":{"browserify":"*","debug":"*","eslint":"*","gulp":"4.0.2","gulp-clean-css":"*","gulp-concat":"*","gulp-debug":"*","gulp-eslint":"*","gulp-header":"*","gulp-jsbeautifier":"*","gulp-rename":"*","gulp-uglify":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"repository":{"type":"git","url":"git+https://github.com/edemaine/codemirror-spell-checker.git"},"scripts":{"build":"gulp"},"gitHead":"2abbe8e46e6245a05bbf7a879f45d40362498aba","_id":"@edemaine/codemirror-spell-checker@0.0.2","_nodeVersion":"19.9.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-t/+x5IIqyNHn13211QNaxOx8y7O7Wum4sYF/8knG68qoMmzUe56J6offNQduKC5XmP6qeHx6F/eJHGsMJjmTqg==","shasum":"514e9ef412af3f699e7528ef67166a116b0a508e","tarball":"https://registry.npmjs.org/@edemaine/codemirror-spell-checker/-/codemirror-spell-checker-0.0.2.tgz","fileCount":17,"unpackedSize":847126,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGG43SxL88/7/VBHXRkM50sOtBLQVq8w66YvZ/LVyeyWAiAPtm7qEu8iIot3hvV1coJ9G+JymugXzMW//Hd7MHsJpg=="}]},"_npmUser":{"name":"edemaine","email":"edemaine@mit.edu"},"directories":{},"maintainers":[{"name":"edemaine","email":"edemaine@mit.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codemirror-spell-checker_0.0.2_1691857442145_0.5774316811883309"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-25T18:07:44.686Z","0.0.0":"2019-03-25T18:07:45.030Z","modified":"2023-08-12T16:24:02.546Z","0.0.1":"2019-03-25T18:30:16.384Z","0.0.2":"2023-08-12T16:24:02.344Z"},"maintainers":[{"name":"edemaine","email":"edemaine@mit.edu"}],"description":"Tweaked spell checker for CodeMirror","homepage":"https://github.com/edemaine/codemirror-spell-checker","keywords":["codemirror","code","mirror","spell","checker","checking","spellchecker","spellchecking","javascript"],"repository":{"type":"git","url":"git+https://github.com/edemaine/codemirror-spell-checker.git"},"author":{"name":"Wes Cossick and Erik Demaine"},"bugs":{"url":"https://github.com/edemaine/codemirror-spell-checker/issues"},"license":"MIT","readme":"# CodeMirror Spell Checker\nSpell checking so simple, you can set up in 60 seconds. It will highlight any misspelled words in light red. Works great in conjunction with other CodeMirror modes, like GitHub Flavored Markdown.\n\n## Fork\n\nThis is a fork of [sparksuite's codemirror-spell-checker](https://github.com/sparksuite/codemirror-spell-checker).\n\nAdded fixes:\n\n* Non-ASCII characters (e.g. foreign character sets) are ignored.\n* Numbers aren't treated as spelling error.\n* 27D isn't treated as a spelling error (for 27 dimensions).\n* Switch to [`hunspell-en_US-large` dictionary](https://sourceforge.net/projects/wordlist/files/speller/2018.04.16/)\n  via [NPM package hunspell-dict-en-us](https://www.npmjs.com/package/hunspell-dict-en-us)\n\n![Screenshot](http://i.imgur.com/7yb5Nne.png)\n\n## Install\n\nVia [npm](https://www.npmjs.com/package/codemirror-spell-checker).\n```\nnpm install @edemaine/codemirror-spell-checker --save\n```\n\nVia [bower](https://www.bower.io).\n```\nbower install @edemaine/codemirror-spell-checker --save\n```\n\nVia [jsDelivr](https://www.jsdelivr.com/package/npm/@edemaine/codemirror-spell-checker). *Please note, jsDelivr may take a few days to update to the latest release.*\n\n```HTML\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@edemaine/codemirror-spell-checker/latest/spell-checker.min.css\">\n<script src=\"https://cdn.jsdelivr.net/npm/@edemaine/codemirror-spell-checker/latest/spell-checker.min.js\"></script>\n```\n\n## Quick start\nOnce CodeMirror is installed and loaded, first provide CodeMirror Spell Checker with the correct CodeMirror function. Then, just set the primary mode to `\"spell-checker\"` and the backdrop mode to your desired mode. Be sure to load/require `overlay.min.js` if you haven't already.\n\n```JS\nCodeMirrorSpellChecker({\n\tcodeMirrorInstance: CodeMirror,\n});\n\nCodeMirror.fromTextArea(document.getElementById(\"textarea\"), {\n\tmode: \"spell-checker\",\n\tbackdrop: \"gfm\" // Your desired mode\n});\n```\n\nThat's it!\n\n## Customizing\nYou can customize the misspelled word appearance by updating the CSS. All misspelled words will have the `.cm-spell-error` class.\n\n```CSS\n.CodeMirror .cm-spell-error{\n\t/* Your styling here */\n}\n```\n\n## Configuration\n\n- **customWords**: Custom array of words that will not be designated as misspelled. Defaults to an empty array.\n\n```JavaScript\n// Most options demonstrate the non-default behavior\nCodeMirrorSpellChecker({\n\tcodeMirrorInstance: CodeMirror,\n\tcustomWords: [\"CodeMirror\", \"GitHub\"],\n});\n```\n","readmeFilename":"README.md"}