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.
@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.10.0-alpha.3 (2021-09-16)
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.
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.