{"_id":"askcharacter","_rev":"2963911","name":"askcharacter","description":"Prompt for a single character","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"alexander_schroll","email":""},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"devtoolsbot","email":""},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"hswolff","email":"hswolff@gmail.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"mabaasit","email":""},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"mongo-j","email":""},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"mongodb-js-user","email":"lucas.hrabovsky+mongodb-js@10gen.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"tomhollander","email":"tomhollander@hotmail.com"}],"time":{"modified":"2023-05-08T06:30:50.000Z","created":"2021-04-12T16:40:06.157Z","1.0.0":"2021-04-12T16:40:06.157Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/mongodb-js/askcharacter.git"},"versions":{"1.0.0":{"name":"askcharacter","version":"1.0.0","description":"Prompt for a single character","keywords":["password","prompt","tty"],"homepage":"https://github.com/mongodb-js/askcharacter","repository":{"type":"git","url":"git+https://github.com/mongodb-js/askcharacter.git"},"bugs":{"url":"https://github.com/mongodb-js/askcharacter/issues"},"main":"lib/index.js","exports":{"require":"./lib/index.js","import":"./.esm-wrapper.mjs"},"scripts":{"lint":"eslint **/*.ts","test":"npm run lint && npm run build && nyc mocha --colors -r ts-node/register test/*.ts","build":"npm run compile-ts && gen-esm-wrapper . ./.esm-wrapper.mjs","prepack":"npm run build","compile-ts":"tsc -p tsconfig.json"},"license":"Apache-2.0","devDependencies":{"@types/mocha":"^8.0.3","@types/node":"^14.11.1","@typescript-eslint/eslint-plugin":"^4.2.0","@typescript-eslint/parser":"^4.2.0","eslint":"^7.9.0","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","gen-esm-wrapper":"^1.1.0","mocha":"^8.1.3","nyc":"^15.1.0","ts-node":"^9.0.0","typescript":"^4.0.3"},"dependencies":{"hijack-stream":"^1.0.0"},"gitHead":"29b73ab4ab64e983b951edac9ece572b98c5e110","_id":"askcharacter@1.0.0","_nodeVersion":"16.0.0-pre","_npmVersion":"7.6.3","dist":{"shasum":"7fdb724a61bd56f3ad7d94ab94d2ea471c360f7c","size":6469,"noattachment":false,"key":"/askcharacter/-/askcharacter-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/askcharacter/download/askcharacter-1.0.0.tgz"},"_npmUser":{"name":"addaleax","email":"anna@addaleax.net"},"directories":{},"maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"alexander_schroll","email":""},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"devtoolsbot","email":""},{"name":"durran","email":"durran@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"gribnoysup","email":"petushkov.sergey@gmail.com"},{"name":"hswolff","email":"hswolff@gmail.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"mabaasit","email":""},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"mongo-j","email":""},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"mongodb-js-user","email":"lucas.hrabovsky+mongodb-js@10gen.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"satyasinha","email":"satyendra.n.sinha@gmail.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"tomhollander","email":"tomhollander@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/askcharacter_1.0.0_1618245605997_0.4870742423951686"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T10:48:43.127Z","publish_time":1618245606157,"_cnpm_publish_time":1618245606157}},"readme":"# askcharacter\n\nPrompt for a single character\n\n```js\nimport askcharacter from 'askcharacter';\n\nconsole.log('Please enter a character:');\nconst char = await askcharacter(process.stdin);\nconsole.log('You entered the following askcharacter:', char.toString());\n```\n\nThe stream passed to `askcharacter` can be any kind of `Readable` stream.\nIf it is a TTY, `askcharacter` will temporarily remove all other `'data'` and\n`'readable'` listeners from it, and set the TTY into raw mode if it has not\nbeen in raw mode to begin with.\n\n## Why not use [`read`](https://www.npmjs.com/package/read) instead?\n\nBecause `read `does not work inside a Node.js REPL.\n\n## LICENSE\n\nApache-2.0\n","_attachments":{},"homepage":"https://github.com/mongodb-js/askcharacter","bugs":{"url":"https://github.com/mongodb-js/askcharacter/issues"},"license":"Apache-2.0"}