{"name":"read","version":"5.0.1","author":{"name":"GitHub Inc."},"license":"ISC","_id":"read@5.0.1","maintainers":[{"name":"gar","email":"gar+npm@danger.computer"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"homepage":"https://github.com/npm/read#readme","bugs":{"url":"https://github.com/npm/read/issues"},"tap":{"ts":false,"nyc-arg":["--exclude","tap-snapshots/**"],"coverage":false,"node-arg":["--no-warnings","--loader","ts-node/esm"]},"dist":{"shasum":"e6b0a84743406182fdfc20b2418a11b39b7ef837","tarball":"http://registry-npm.ywwl.com/read/download/read-5.0.1.tgz","fileCount":13,"integrity":"sha512-+nsqpqYkkpet2UVPG8ZiuE8d113DK4vHYEoEhcrXBAlPiq6di7QRTuNiKQAbaRYegobuX2BpZ6QjanKOXnJdTA==","signatures":[{"sig":"MEYCIQClf6uMEh51mGEqf3eFQf9dTwmtTjgOqXTQJMa+Nff+hgIhAI8tKzLwTQ7KN/Qz8HfEv1BnlDjS9yChmltM/YQEqNv8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/read@5.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25697,"size":5314,"noattachment":false,"key":"/read/-/read-5.0.1.tgz"},"main":"./dist/commonjs/read.js","tshy":{"exports":{".":"./src/read.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/read.d.ts","module":"./dist/esm/read.js","engines":{"node":"^20.17.0 || >=22.9.0"},"exports":{".":{"import":{"types":"./dist/esm/read.d.ts","default":"./dist/esm/read.js"},"require":{"types":"./dist/commonjs/read.d.ts","default":"./dist/commonjs/read.js"}},"./package.json":"./package.json"},"gitHead":"361af07ea1e5dcffb99b4bd36f752c1110a97d01","scripts":{"lint":"npm run eslint","snap":"c8 tap","test":"c8 tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","prepare":"tshy","presnap":"npm run prepare","pretest":"npm run prepare","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e0223c60-6e48-4714-827e-85530459db1e"}},"repository":{"url":"git+https://github.com/npm/read.git","type":"git"},"_npmVersion":"11.6.2","description":"read(1) for node programs","directories":{},"templateOSS":{"publish":true,"version":"4.27.1","typescript":true,"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.20.0","dependencies":{"mute-stream":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","tap":"^16.3.9","tshy":"^3.0.2","ts-node":"^10.9.1","@types/tap":"^15.0.11","typescript":"^5.2.2","@types/mute-stream":"^0.0.4","@npmcli/template-oss":"4.27.1","@npmcli/eslint-config":"^5.0.0","@typescript-eslint/parser":"^8.0.1","eslint-import-resolver-typescript":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/read_5.0.1_1761242192853_0.6896665540596367","host":"s3://npm-registry-packages-npm-production"},"readme":"## read\n\nFor reading user input from stdin.\n\nSimilar to the `readline` builtin's `question()` method, but with a\nfew more features.\n\n## Usage\n\n```javascript\nconst { read } = require('read')\n// or with ESM: import { read } from 'read'\ntry {\n  const result = await read(options)\n} catch (er) {\n  console.error(er)\n}\n```\n\n## Options\n\nEvery option is optional.\n\n* `prompt` What to write to stdout before reading input.\n* `silent` Don't echo the output as the user types it.\n* `replace` Replace silenced characters with the supplied character value.\n* `timeout` Number of ms to wait for user input before giving up.\n* `default` The default value if the user enters nothing.\n* `edit` Allow the user to edit the default value.\n* `terminal` Treat the output as a TTY, whether it is or not.\n* `input` Readable stream to get input data from. (default `process.stdin`)\n* `output` Writable stream to write prompts to. (default: `process.stdout`)\n* `completer` Autocomplete callback (see [official api](https://nodejs.org/api/readline.html#readline_readline_createinterface_options) for details\n* `history` History array, which will be appended to.\n\nIf silent is true, and the input is a TTY, then read will set raw\nmode, and read character by character.\n\n## Contributing\n\nPatches welcome.\n","publish_time":1761242193069,"_cnpm_publish_time":1761242193069,"dist-tags":{"latest":"6.0.0"}}