Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
This README is also available in Russian.
Search tool typos in the text, files and websites.
Used API Yandex.Speller.
npm install yaspeller -g
yaspeller [options] <file-or-directory-or-link...>
yaspeller README.md
— search typos in the file.yaspeller -e ".md,.html,.js" ./texts/
— finding typos in files in the folder.yaspeller http://www.yandex.ru/
— search typos in the page.yaspeller http://bem.info/sitemap.xml
— search typos at the addresses specified in the sitemap.xml.-f, --format <value>
Formats: plain
, html
, markdown
или auto
.
Default: auto
.
-l, --lang <value>
Languages: en
, ru
or uk
.
Default: en,ru
.
-c, --config <path>
Configuration file path.
-e, --file-extensions <value>
Set file extensions to search for files in a folder.
Example: .md,.htm,.txt
.
--dictionary <file>
JSON file for own dictionary.
[
"someword1",
"someword2",
"someword3"
]
--report <type>
Set type of report: console
, html
or json
.
Default: console
Example: console,html,custom_report.js
--by-words
Do not use a dictionary environment (context) during the scan.
This is useful in cases where the service is transmitted to the input of a list of individual words.
--find-repeat-words
Highlight repetitions of words, consecutive. For example, I flew to to to Cyprus
.
--flag-latin
Celebrate words, written in Latin, as erroneous.
--ignore-tags <tags>
Ignore HTML tags.
Default: code,kbd,object,samp,script,style,var
--ignore-capitalization
Ignore the incorrect use of UPPERCASE / lowercase letters, for example, in the word moscow
.
--ignore-digits
Ignore words with numbers, such as avp17h4534
.
--ignore-latin
Ignore words, written in Latin, for example, madrid
.
--ignore-roman-numerals
Ignore Roman numerals I, II, III, ...
.
--ignore-uppercase
Ignore words written in capital letters.
--ignore-urls
Ignore Internet addresses, email addresses and filenames.
--max-requests <value>
Max count of requests at a time.
Default: 2
.
--no-colors
Clean output without colors.
--only-errors
Output only errors.
--debug
Debug mode.
npm install yaspeller --save-dev
Add the text in package.json
/ scripts
:
"yaspeller": "./node_modules/.bin/yaspeller .",
To run the linter:
npm run yaspeller
Yaspeller is configured using .yaspellerrc
JSON file at the root of the project.
{
"excludeFiles": [
".git",
"libs",
"node_modules",
"yaspeller"
],
"lang": "ru",
"fileExtensions": [
".md",
".js",
".css"
],
"dictionary": [
"someword1"
]
}
Advanced example:
{
"excludeFiles": [
".git",
"yaspeller",
"node_modules",
"libs"
],
"format": "html",
"lang": "en",
"fileExtensions": [
".md",
".js",
".css"
],
"report": ["console", "html"],
"dictionary": [
"someword1"
],
"ignoreTags": ["code", "script"],
"ignoreUrls": true,
"findRepeatWords": true,
"maxRequests": 5
}
Property | Type | Details |
---|---|---|
format | String | --format |
lang | String | --lang |
excludeFiles | Array | |
fileExtensions | Array | --file-extension |
dictionary | Array | --dictionary |
report | Array | --report |
byWords | Boolean | --by-words |
findRepeatWords | Boolean | --find-repeat-words |
flagLatin | Boolean | --flag-latin |
ignoreTags | Array | --ignore-tags |
ignoreCapitalization | Boolean | --ignore-capitalization |
ignoreDigits | Boolean | --ignore-digits |
ignoreLatin | Boolean | --ignore-latin |
ignoreRomanNumerals | Boolean | --ignore-roman-numerals |
ignoreUppercase | Boolean | --ignore-uppercase |
ignoreUrls | Boolean | --ignore-urls |
maxRequests | Boolean | --max-requests |
MIT License
FAQs
Search tool typos in the text, files and websites
The npm package yaspeller receives a total of 3,661 weekly downloads. As such, yaspeller popularity was classified as popular.
We found that yaspeller 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.