Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 450 Bytes

README.md

File metadata and controls

17 lines (17 loc) · 450 Bytes

nodejs-client

The NodeJS client for SpellCheckJS

Installation

npm i --save SpellCheckJS/nodejs-client

Usage

const spellcheck=require("SpellCheckJS");
console.log(spellcheck.applyCorrections("the witdh of malpe leaves is hard to guess"));
if(spellcheck.isCorrectlySpelled("'Width' is easy to spell. How could you mess that up? You'd be surprised.")) {
  console.log("Yay");
}
else {
  throw new Error("Uh-oh. :(");
}