How tj/co-prompt works
co-prompt is a small Node.js terminal-input library whose API returns thunks for use with co. A co caller yields prompt, multiline, confirmation, or password input; the thunk reads terminal input and returns a value. Confirmation reuses the basic prompt and parses its response as a boolean. The sampled implementation shows terminal stream handling and the password keypress dependency; no separate domain or storage layers are present.
Main entry points: index.js Password
Components 7
Other components
- co Caller
- Prompt
index.js - Multiline
index.js - Confirmation
index.js - Password
index.js - Terminal Streams
- keypress Package
Connections 9
- co Caller → Prompt: yields thunk
Readme.md - co Caller → Multiline: yields thunk
Readme.md - co Caller → Confirmation: yields thunk
Readme.md - co Caller → Password: yields thunk
Readme.md - Prompt → Terminal Streams: writes and reads
index.js - Multiline → Terminal Streams: writes and reads
index.js - Confirmation → Prompt: calls
index.js - Password → Terminal Streams: writes and reads
index.js - Password → keypress Package: configures input
index.js