
Research
/Security News
Popular Go Decimal Library Targeted by Long-Running Typosquat with DNS Backdoor
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.
@browserstack/accessibility-devtools
Advanced tools
Command-line interface for BrowserStack Accessibility DevTools
Run accessibility checks on your React and HTML files
First, install the BrowserStack Accessibility DevTools via npm
npm install @browserstack/accessibility-devtools
Set up the two environment variables BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY
~/.zshrc~/.bashrc or ~/.bash_profile~/.config/fish/config.fishSave the username and access key in the CI/CD secrets and inject into the build.
Run the linter manually from your terminal, or integrate it into Git pre-commit hooks and build scripts.
npx accessibility-devtools-cli --include src/**.jsx
--version: Show version number
--include or -i: Glob pattern(s) for files to lint
--exclude or -e: Glob pattern(s) for files to exclude from linting
--browserstack-username or -u: BrowserStack username (if not provided, taken from BROWSERSTACK_USERNAME env variable)
--browserstack-access-key or -k: BrowserStack access key (if not provided, taken from BROWSERSTACK_ACCESS_KEY env variable)
--non-strict or -n: Run in non-strict mode (only print violations, do not exit with non-success code)
--help: Show help
0 - no issues
1 - open accessibility issues
2 - BrowserStack connection issues
Use the API for custom build scripts (like Gulp/Node.js runners etc.)
export interface AccessibilityDevToolsOptions {
// List of glob patterns to include in the linting process.
include: string[];
// List of glob patterns to exclude from the linting process.
exclude?: string[];
// BrowserStack credentials
browserstackUsername: string;
browserstackAccessKey: string;
// Whether to run in non-strict mode, default: false
nonStrict?: boolean;
}
enum RunStatus {
SUCCESS = 0,
FAILURE = 1,
ERROR = 2,
}
export default function runA11yDevtools(options: AccessibilityDevToolsOptions): Promise<RunStatus>;
Sample code snippet:
import runA11yDevtools from '@browserstack/accessibility-devtools';
const runStatus = runA11yDevtools({
include: ['src/**/*.jsx'],
exclude: [],
browserstackUsername: 'your_username',
browserstackAccessKey: 'your_access_key',
});
process.exit(runStatus);
| Property | Type | Required | Description |
|---|---|---|---|
include | string[] | Yes | Glob pattern(s) for files to lint. |
browserstackUsername | string | Yes | Your BrowserStack account username. |
browserstackAccessKey | string | Yes | Your BrowserStack account access key. |
exclude | string[] | No | Glob pattern(s) to ignore. |
nonStrict | boolean | No | Run in non-strict mode (only print violations, do not exit with non-success code) |
FAQs
Command-line interface for BrowserStack Accessibility DevTools
The npm package @browserstack/accessibility-devtools receives a total of 111 weekly downloads. As such, @browserstack/accessibility-devtools popularity was classified as not popular.
We found that @browserstack/accessibility-devtools 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 long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.