npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node_keyboard

v0.0.4

Published

Windows NT Keyboard Control Library

Readme

node_keyboard

Windows NT Keyboard Control Library for Node.js.

Key Types

Lots of key types are available.

var keyboard = require('node_keyboard');

keyboard.Key_NoKey,
keyboard.Key_A, ... , keyboard.Key_Z,
keyboard.Key_0, ... , keyboard.Key_9,
keyboard.Key_F1, ... , keyboard.Key_F24,
keyboard.Key_Numpad0, ... , keyboard.Key_Numpad9,
keyboard.Key_Escape
keyboard.Key_Space
keyboard.Key_Return
keyboard.Key_Backspace
keyboard.Key_Tab
keyboard.Key_Shift_L
keyboard.Key_Shift_R
keyboard.Key_Control_L
keyboard.Key_Control_R
keyboard.Key_Alt_L
keyboard.Key_Alt_R
keyboard.Key_Win_L
keyboard.Key_Win_R
keyboard.Key_Apps
keyboard.Key_CapsLock
keyboard.Key_NumLock
keyboard.Key_ScrollLock
keyboard.Key_PrintScreen
keyboard.Key_Pause
keyboard.Key_Insert
keyboard.Key_Delete
keyboard.Key_PageUP
keyboard.Key_PageDown
keyboard.Key_Home
keyboard.Key_End
keyboard.Key_Left
keyboard.Key_Right
keyboard.Key_Up
keyboard.Key_Down
keyboard.Key_NumpadAdd
keyboard.Key_NumpadSubtract
keyboard.Key_NumpadMultiply
keyboard.Key_Slash
keyboard.Key_Period
keyboard.Key_Comma
keyboard.Key_Hangul
keyboard.Key_Semicolon
keyboard.Key_BackQuote
keyboard.Key_BraceOpen
keyboard.Key_BackSlash
keyboard.Key_BraceClose
keyboard.Key_SingleQuote

API

var keyboard = require('node_keyboard');

keyboard.type(keyboard.Key_PrintScreen);

keyboard.press(keyboard.Key_Comma);
keyboard.release(keyboard.Key_Comma);

keyboard.typeString("Hello World!", "en", 2800, function() {
    console.log("This is callback.");
}); // Language : "en", Duration : 2800ms
/*
Currently language parameter only supports "ko"(Korean) and "en"(English).
I highly recommend using "en" as the default language parameter.
For korean, we can use 

keyboard.typeString("안녕하세요!", "ko", 2800, function() {
    console.log("This is callback.");
}); 
*/

keyboard.typeString("@#$%^&*()_-+=`~<>,./?;:'\"[]{}\|ScdWB!ws", "en", 2800, function() {
    console.log("This is callback.");
}); // It always work.

var keyCode = keyboard.getKeyCode("a");
keyboard.type(keyCode); // type "a"

var capsLock = keyboard.isCapsLock(); // Check whether capsLock is enabled.

keyboard.toggleCapsLock(); // Toggle capsLock key.

keyboard.setCapsLock(true);

var english = keyboard.isEnglishMode(); // true, false
// For english keyboard users this is a useless function b/c it will always return true.

var korean = keyboard.isKoreanMode(); // true, false
// Only for Korean users. This function is currently very unstable.

keyboard.toggleMode(); // Toggle Keyboard Mode between English and Korean.

keyboard.setKoreanMode();

keyboard.setEnglishMode();

keyboard.changeLanguageFlag();
// This is just for experiment.