Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
spellchecker
Advanced tools
Native bindings to NSSpellChecker, Hunspell, or the Windows 8 Spell Check API, depending on your platform. Windows 7 and below as well as Linux will rely on Hunspell.
npm install spellchecker
SpellChecker = require 'spellchecker'
Check if a word is misspelled.
word
- String word to check.
Returns true
if the word is misspelled, false
otherwise.
Get the corrections for a misspelled word.
word
- String word to get corrections for.
Returns a non-null but possibly empty array of string corrections.
Identify misspelled words in a corpus of text.
corpus
- String corpus of text to spellcheck.
Returns an Array containing {start, end}
objects that describe an index range within the original String that contains a misspelled word.
Asynchronously identify misspelled words.
corpus
- String corpus of text to spellcheck.
Returns a Promise that resolves with the Array described by checkSpelling()
.
Adds a word to the dictionary. When using Hunspell, this will not modify the .dic file; new words must be added each time the spellchecker is created. Use a custom dictionary file.
word
- String word to add.
Returns nothing.
FAQs
Bindings to native spellchecker
The npm package spellchecker receives a total of 12,138 weekly downloads. As such, spellchecker popularity was classified as popular.
We found that spellchecker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.