Registry / testing / pielette-addon-sendkeys

pielette-addon-sendkeys

JSON →
library1.2.5jsnpmunverified

This package, pielette-addon-sendkeys version 1.2.5, is an addon for the Pielette platform that enables sending keystrokes to the user's system. It provides a simple API to simulate keyboard input, supporting both individual key presses and sequences. Note that this package is specific to Pielette and may not be useful outside that ecosystem. The package ships TypeScript types for better developer experience. The release cadence and key differentiators are unclear due to limited documentation, but it appears to be a minimal addon with no known major alternatives.

npm install pielette-addon-sendkeys
INSTALL
IMPORT
SIG · PIELETTE-ADDON-SEN
P
pielette-addon-sendkeys
testingjavascriptv1.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sendKeys
import { sendKeys } from 'pielette-addon-sendkeys'
const sendKeys = require('pielette-addon-sendkeys')
Package is ESM-only; require() will fail. Named export.
default
import pieletteSendkeys from 'pielette-addon-sendkeys'
import { default as pieletteSendkeys } from 'pielette-addon-sendkeys'
Default export is available, but named export 'sendKeys' is preferred for clarity.
SendKeysOptions
import { SendKeysOptions } from 'pielette-addon-sendkeys'
TypeScript type for options object, only available when using TypeScript.

Demonstrates importing and using sendKeys to simulate keystrokes with single keys, sequences, and options.

import { sendKeys } from 'pielette-addon-sendkeys'; async function main() { // Send a single key await sendKeys('a'); // Send a sequence await sendKeys(['ctrl', 'c']); // With options (delay in ms) await sendKeys('hello', { delay: 100 }); } main().catch(console.error);
Debug
Known issues
gotchaWorks only on the Pielette platform; not compatible with standard Node.js or browser environments.
fix
Ensure your code runs within Pielette's runtime. No workaround available.
affects: all
deprecatedThe sendKeys function signature changed in v1.2.0; second argument now expects an options object instead of a number.
fix
Update calls: await sendKeys('a', 100) becomes await sendKeys('a', { delay: 100 }).
affects: >=1.2.0 <2.0.0
gotchaPackage is ESM-only; importing with require() will throw an error.
fix
Use import syntax or dynamic import() if needed.
affects: all
Errors
Common errors & fixes
ERR_REQUIRE_ESM
Using require() to load an ESM-only package.
fix
Change to import { sendKeys } from 'pielette-addon-sendkeys' or use dynamic import().
sendKeys is not a function
Importing the default export incorrectly as a named function.
fix
Use import { sendKeys } from 'pielette-addon-sendkeys' (named export).
Upgrade
Version history
1.2.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pielette-addon-sendkeys — npm install pielette-addon-sendkeys · libregistry