Skip to content

SpellCheckJS/nodejs-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. :(");
}