Installations
npm install spectron-keys
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
5.8.0
NPM Version
3.7.3
Score
70.1
Supply Chain
79.8
Quality
75
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
jsantell
Download Statistics
Total Downloads
90,661
Last Day
1
Last Week
3
Last Month
14
Last Year
345
GitHub Statistics
3 Stars
2 Commits
2 Forks
3 Watching
1 Branches
1 Contributors
Bundle Size
2.45 kB
Minified
1.13 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.0.1
Package Id
spectron-keys@0.0.1
Size
3.57 kB
NPM Version
3.7.3
Node Version
5.8.0
Total Downloads
Cumulative downloads
Total Downloads
90,661
Last day
0%
1
Compared to previous day
Last week
0%
3
Compared to previous week
Last month
250%
14
Compared to previous month
Last year
-11.3%
345
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
spectron-keys
Accelerator mappings for Electron commands to Spectron/WebDriver key codes. Maps Electron Accelerators like "CommandOrControl+A"
to ["\uE03D", "a"]
(on OS X).
Install
npm install spectron-keys
API
spectronKeys.mapAccelerator(accelerator, platform)
Takes a string accelerator
, like "CommandOrControl+A"
and an optional platform
string, and returns an array of WebDriver-ready unicode and keys to consume. platform
defaults to require("os").platform()
if not specified.
spectronKeys.keys
An object of constants mapping key names and modifiers to their unicode values used by WebDriver. Essentially, just exposes ./lib/webdriver-keys.json.
Usage
1const spectronKeys = require("spectron-keys"); 2const { Application } = require("spectron"); 3const config = require("./config"); 4 5async function run () { 6 const app = new Application(config); 7 await app.start(); 8 await app.client.keys(spectronKeys.mapAccelerator("CommandOrControl+A")); 9}
Testing
npm test
License
MIT License, Copyright (c) 2016 Jordan Santell
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More