pptr-human-keyboard

0.2.0 • Public • Published

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()

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i pptr-human-keyboard

    Weekly Downloads

    0

    Version

    0.2.0

    License

    ISC

    Unpacked Size

    6.44 kB

    Total Files

    6

    Last publish

    Collaborators

    • jvscheuermann