Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
commonform-alex
Advanced tools
Critique contracts in Common Form for insensitive language using Alex.
var annotator = require('./index')
var assert = require('assert');
// Single tests
assert.deepEqual(
annotator({ content: [ 'Hey bro!' ] }),
[ { message: '\"bro\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null } ] )
assert.deepEqual(
annotator({ content: [ 'What does she think?' ] }),
[ { message: '\"she\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null } ] )
// Double test
assert.deepEqual(
annotator({ content: [ 'What does she think about the bro?' ] }),
[ { message: '\"she\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null },
{ message: '\"bro\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null } ] )
// Exclusion test
assert.deepEqual(
annotator({ content: [ 'Talking about paternity is acceptable in family law cases, so we allow it.' ] }),
[ ] )
// Many test
assert.deepEqual(
annotator({ content: [ 'The boogeyman wrote all changes to the master server. Thus, the slaves were read-only copies of master. But not to worry, he was a cripple.' ] }),
[ { message: '\"he\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null },
{ message: '\"boogeyman\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null },
{ message: '\"cripple\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null },
{ message: '\"master\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null },
{ message: '\"slaves\" may be insensitive',
level: "info",
path: [ 'content', 0 ],
source: 'commonform-alex',
url: null } ]);
FAQs
Critique Common Forms for insensitive language
The npm package commonform-alex receives a total of 1 weekly downloads. As such, commonform-alex popularity was classified as not popular.
We found that commonform-alex 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.