Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-printable-key-event

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-printable-key-event - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

2

package.json
{
"name": "is-printable-key-event",
"version": "0.0.1",
"version": "1.0.0",
"description": "Detect whether a KeyboardEvent is caused by a printable key",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -11,2 +11,17 @@ # is-printable-key-event

## Usage
```js
import isPrintableKeyEvent from "is-printable-key-event";
element.addEventListener("keydown", function (event) {
if (isPrintableKeyEvent(event) === false) {
return; // ignore key down
}
// do something with input
});
```
## References

@@ -13,0 +28,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc