🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

spellcheck-js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

spellcheck-js

Checks if a english sentence or word is spelled correctly in JavaScript.

unpublished
latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

spellcheck-js

Checks if a english sentence or word is spelled correctly in JavaScript.

Installation

npm i spellcheck-js

Usage

First import:

const spellcheck = require("spellcheck-js");

Check if a word is spelled correctly:

spellcheck("hello"); // true
spellcheck("fsdklfjas"); // false

Or a sentence:

spellcheck("sentence correct"); // true
spellcheck("sentecees corecte"); // false

Get more advanced info:

spellcheck("which wordd wrong"); // {isSpelledCorrectly: false, correctlySpelledWords: ['which', 'wrong'], incorrectlySpelledWords: ['wordd']}

Or add your own words

spellcheck("customword"); // false
spellcheck("customword", false, ["customword"]); // true

License

spellcheck-js is MIT-licensed open-source software created by Bharadwaj Duggaraju.

Keywords

english

FAQs

Package last updated on 10 Mar 2022

Did you know?

Socket

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.

Install

Related posts