@serialpilot/serialpilot
v1.0.1
Published
Scoped alias for the SerialPilot umbrella package — re-exports everything from `serialpilot`. Use whichever name fits your import style.
Maintainers
Readme
@serialpilot/serialpilot
Scoped alias for the SerialPilot umbrella package. This package re-exports everything from the unscoped serialpilot — the two are interchangeable.
Why two names?
serialpilot(unscoped) is the canonical install for end users — short, easy to type, matches the import.@serialpilot/serialpilot(this package) lives under the@serialpilotnpm org alongside its sibling packages, so the org's package listing is complete.
Pick whichever fits your import style. They share the same major version line.
Install
npm install @serialpilot/serialpilot
# or
npm install serialpilotUsage
Identical to the unscoped package:
import { SerialPilot, ReadlineParser } from '@serialpilot/serialpilot'
const port = new SerialPilot({ path: '/dev/ttyUSB0', baudRate: 115200 })
const lines = port.pipe(new ReadlineParser({ delimiter: '\n' }))
lines.on('data', line => console.log(line))See the main README for the full API, recipes, and parser list.
