
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Toukey
is a simple and efficient keyboard events library. That's toukey's doc site.
npm i toukey --save
or
pnpm add toukey --save
You could download and link toukey.js in your HTML, It can also be downloaded via UNPKG | jsDelivr
<script src="https://unpkg.com/toukey/dist/toukey.umd.min.js"></script>
<script>
toukey.subscribe('space', function() {
console.log('space');
});
</script>
It is easy to use with react.
import { useEffect } from "react";
import { subscribe } from "toukey";
function App() {
useEffect(() => {
return subscribe("scope", () => {
console.log("scope");
});
});
return <div>hello world</div>;
}
And here is a library named react-toukey-hook which build with toukey for react hook.
import * as Toukey from "toukey";
const handler = () => console.log("handler");
// subscribe
Toukey.on("scope", handler);
// unsubscribe
Toukey.off("scope", handler);
import { subscribe } from "toukey";
const unsubsribe = subscribe("scope", () => {
console.log("scope");
});
FAQs
Toukey is a Javascript library for keyboard shortcuts
The npm package toukey receives a total of 47 weekly downloads. As such, toukey popularity was classified as not popular.
We found that toukey 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
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.