Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

spellcheck-js

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

  • 1.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc