Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@cspell/cspell-bundled-dicts
Advanced tools
@cspell/cspell-bundled-dicts is a package that provides a collection of pre-bundled dictionaries for use with the CSpell spell checker. It allows developers to easily integrate various language dictionaries into their projects to enhance spell-checking capabilities.
Loading a Dictionary
This feature allows you to load a specific dictionary by its language code. In this example, the 'en_us' dictionary is loaded and logged to the console.
const { getDictionary } = require('@cspell/cspell-bundled-dicts');
async function loadDictionary() {
const dictionary = await getDictionary('en_us');
console.log(dictionary);
}
loadDictionary();
Listing Available Dictionaries
This feature provides a list of all available dictionaries bundled with the package. The example code retrieves and logs the list of dictionaries.
const { getDictionaryList } = require('@cspell/cspell-bundled-dicts');
function listDictionaries() {
const dictionaries = getDictionaryList();
console.log(dictionaries);
}
listDictionaries();
hunspell-dict-en-us provides the English (US) dictionary for Hunspell, a popular spell checker. Unlike @cspell/cspell-bundled-dicts, which offers multiple dictionaries for different languages, hunspell-dict-en-us focuses solely on the US English dictionary.
dictionary-en is part of the `wooorm/dictionaries` collection and provides English dictionaries for use with various spell checkers. It is similar to @cspell/cspell-bundled-dicts in that it offers pre-bundled dictionaries, but it is more focused on the English language.
spellchecker-wasm is a WebAssembly-based spell checker that includes dictionaries for multiple languages. It is similar to @cspell/cspell-bundled-dicts in providing multi-language support but differs in its use of WebAssembly for performance optimization.
This package contains all the dictionaries bundled with cspell.
It has been pull into its own package to make it easier to Webpack cspell.
Example webpack.config.js
modification:
externals: [
/^@cspell\/cspell-bundled-dicts/,
],
Example: package.json
:
"devDependencies": {
"cspell": "^5",
},
"dependencies": {
"@cspell/cspell-bundled-dicts": "^5"
}
5.3.0-alpha.0 (2021-02-18)
FAQs
Dictionaries bundled with cspell
The npm package @cspell/cspell-bundled-dicts receives a total of 555,881 weekly downloads. As such, @cspell/cspell-bundled-dicts popularity was classified as popular.
We found that @cspell/cspell-bundled-dicts demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.