Skip to content

Commit 79dce43

Browse files
authored
Update README.md
1 parent f500e8f commit 79dce43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ npm i --save SpellCheckJS/nodejs-client
88
```javascript
99
const spellcheck=require("SpellCheckJS");
1010
console.log(spellcheck.applyCorrections("the witdh of malpe leaves is hard to guess"));
11+
if(spellcheck.isCorrectlySpelled("'Width' is easy to spell. How could you mess that up? You'd be surprised.")) {
12+
console.log("Yay");
13+
}
14+
else {
15+
throw new Error("Uh-oh. :(");
16+
}
1117
```

0 commit comments

Comments
 (0)