Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
spell-checker-js
Advanced tools
Simple expandable tool for spell checking
Readme: English
Русский
Install:
npm i spell-checker-js
Code
const spell = require('spell-checker-js')
// Load dictionary
spell.load('en')
// Checking text
const check = spell.check('Some text to check, blahblahblah, olololo')
console.log(check)
// -> ['blahblahblah', 'olololo']
spell.load(dictionary)
or spell.load(options)
— load dictionary fileExamples:
// ways for load default dictionary:
spell.load('ru')
spell.load({ input: 'ru' })
// load custom dictionary with utf-8:
spell.load('./my_custom_dictionary.txt')
// laod custom dictionary with charset:
spell.load({ input: './my_custom_dictionary.txt', charset: 'windows-1251' })
// Asynchronous load default dictionary:
spell.load({ input: 'en', async: true }).then(len => {
console.log(len);
// len — amount of added words to base
spell.check('something')
})
List of default dictionaries:
en
— list of English wordsru
— list of Russian wordsru_surnames
— list of Russian surnamesYou can help by adding other languages or expand existing dictionaries
spell.check(string)
— spell checking of textReturns: array of wrong words
Example:
spell.load('en')
const check = spell.check('Some text to check, blahblahblah, olololo')
console.log(check)
// -> ['blahblahblah', 'olololo']
spell.clear()
— clear all loaded dictionariesExample:
spell.load('en')
spell.clear()
spell.check('something')
// -> ERROR! Dictionaries are not loaded
spell.size
— number of words in the dictionary areExample
spell.load('en')
spell.load('ru')
console.log(spell.size)
// -> 1956898
MIT © 2016 Danakt Frost
FAQs
Simple expandable tool for spell checking
The npm package spell-checker-js receives a total of 148 weekly downloads. As such, spell-checker-js popularity was classified as not popular.
We found that spell-checker-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.