0.2.0 • Published 3 years ago

pptr-human-keyboard v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

pptr-human-keyboard

This library helps emulating the human typing behavior on Puppeteer.

Instalation

npm install pptr-human-keyboard

Usage

// You should have Puppeteer installed
const puppeteer = require('puppeteer')

// Imports the module
const { createKeyboard } = require('pptr-human-keyboard')

const init = async () => {
  // Initializes Puppeteer
  const browser = await puppeteer.launch()
  const page = await browser.newPage()

  // Initialize the library
  const keyboard = createKeyboard(page)

  // do some stuff ...

  await keyboard.type('Lorem Ipsum') // Unleash the magic

  await browser.close()
}

init()
0.1.2

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago