
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
keycuts-react
Advanced tools
A declarative React wrapper for keycuts, a modern keyboard shortcuts library.
keycuts-react is the React wrapper for keycuts, a modern Javascript library for handling keyboard shortcuts.
$ npm install keycuts keycuts-react --save
# or
$ yarn add keycuts keycuts-react
Alternatively you can download the distributed library and link it into your webpage below the keycuts library.
<script src="keycuts.min.js"></script>
<script src="keycuts-react.min.js"></script>
// Import using ES6 modules syntax
import Keycuts from 'keycuts-react'
// Include it in your component
...
render() {
return (
<Keycuts bind={myBindings} watch={myWatchers} />
}
...
If the Keycuts element does not have any children it listens to key events of the window object. Otherwise it will just listen to events that are bubbling up from its children.
For development fetch the code from Github and install the dependencies.
$ git clone https://github.com/medihack/keycuts-react.git
$ cd keycuts-react
$ npm install # or yarn install
keycuts-react uses Webpack to transpile the source code (src/) into a minified and non-minified bundle in the dist/ folder.
$ npm run build
Run the test suite (using Jest) once or continously when a source or test file was changed.
// Run all tests once
$ npm run test
// or continously
$ npm run test:watch
More scripts to manage the library can be found in the scripts section in the (./package.json) file.
To contribute, please fork, add your code, write tests for it and submit a pull request.
FAQs
A declarative React wrapper for keycuts, a modern keyboard shortcuts library.
We found that keycuts-react 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.