0.1.12 • Published 3 years ago

keyboard-auto-type v0.1.12

Weekly downloads
190
License
MIT
Repository
github
Last release
3 years ago

Node.js bindings for keyboard-auto-type

This project exposes keyboard-auto-type as Node.js API.

Installation

npm i keyboard-auto-type

Usage

You will find more docs in keyboard-auto-type project. Here's how to use it in Node.js:

const { AutoType, KeyCode, Modifier } = require('keyboard-auto-type');

const typer = new AutoType();
// get active window
const win = typer.activeWindow({ getWindowTitle: true, getBrowserUrl: true });
// print something
console.log('Going to type in this window', win);

// type some text
typer.text('Hello');
// press shift+1
typer.keyPress(KeyCode.D1, Modifier.Shift);
// select all
typer.shortcut(KeyCode.A);

Feedback

Do you need a binding that is missing? Please create an issue here, I'll add it!

Found a bug in the implementation? Go to keyboard-auto-type, I'll be happy to help you there.

License

MIT

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago