Socket
Socket
Sign inDemoInstall

@hscmap/keybind

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 0.0.1

4

lib/index.js

@@ -32,2 +32,4 @@ "use strict";

KeyCombination.prototype.html = function () {
var m = this.key.match(/^Key([A-Z])$/);
var key = m ? m[1] : this.key;
return [

@@ -38,3 +40,3 @@ this.alt ? '⌥' : '',

this.meta ? '⌘' : '',
this.key.toUpperCase()
key
].join('');

@@ -41,0 +43,0 @@ };

{
"name": "@hscmap/keybind",
"version": "0.0.0",
"version": "0.0.1",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts",

@@ -34,2 +34,4 @@ class KeyCombination {

html() {
const m = this.key.match(/^Key([A-Z])$/)
const key = m ? m[1] : this.key
return [

@@ -40,3 +42,3 @@ this.alt ? '⌥' : '',

this.meta ? '⌘' : '',
this.key.toUpperCase()
key
].join('')

@@ -43,0 +45,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc