{"name":"read","version":"6.0.0","author":{"name":"GitHub Inc."},"license":"ISC","_id":"read@6.0.0","maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"homepage":"https://github.com/npm/read#readme","bugs":{"url":"https://github.com/npm/read/issues"},"dist":{"shasum":"755f0c3110a143060ca2ddc129ac657f97d589cf","tarball":"http://registry-npm.ywwl.com/read/download/read-6.0.0.tgz","fileCount":13,"integrity":"sha512-Tg/LaEke7h9SDbp0xJJj53oa4s1VPPySVnxQF9nUS9DgA25M/ZCLk7RVF1kHjytC87XbkgQKmQ/79+DQgEIqLA==","signatures":[{"sig":"MEQCIBVbWiegCayF0zLqjQkzSIWI87dK0slLvqQiec4YzEMRAiA9ptstH1QzOthgROFX00abqxDIuGvn3luEmcgrNky9DA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/read@6.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25768,"size":5281,"noattachment":false,"key":"/read/-/read-6.0.0.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":"^22.22.2 || ^24.15.0 || >=26.0.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":"7c7dc1838d3ad961376fdbbe532ea10e66d19992","scripts":{"lint":"npm run eslint","snap":"node --experimental-strip-types --no-warnings --test --test-update-snapshots './test/*.ts'","test":"node --experimental-strip-types --no-warnings --test './test/*.ts'","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","prepare":"tshy","postlint":"template-oss-check","posttest":"npm run lint","test:cover":"node --experimental-strip-types --no-warnings --test --experimental-test-coverage './test/*.ts'","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.13.0","description":"read(1) for node programs","directories":{},"templateOSS":{"content":"./scripts/template-oss","publish":true,"version":"5.1.0","updateNpm":false,"testRunner":"node:test","typescript":true,"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"26.1.0","dependencies":{"mute-stream":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tshy":"^4.1.1","typescript":"^6.0.3","@types/mute-stream":"^0.0.4","@npmcli/template-oss":"5.1.0","@npmcli/eslint-config":"^6.0.0","@typescript-eslint/parser":"^8.0.1","eslint-import-resolver-typescript":"^4.3.2"},"_npmOperationalInternal":{"tmp":"tmp/read_6.0.0_1778870866436_0.42019627818537697","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":1778870866603,"_cnpm_publish_time":1778870866603,"dist-tags":{"latest":"6.0.0"}}