{"name":"stdin-blocker","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/stdin-blocker.git"},"description":"A tiny library for blocking stdin keypresses, except for ctrl+c. Useful while displaying animations.","version":"2.0.0","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"node test/index.js","prepublishOnly":"npm run clean && npm run compile && npm run test"},"keywords":["cli","terminal","stdin","input","block","prevent","ignore"],"devDependencies":{"@types/node":"^17.0.23","fava":"^0.0.6","tsex":"^1.0.6","typescript":"^4.6.3"},"gitHead":"48c505ff10ee58a32fedc73a8c4870102a2d73e9","bugs":{"url":"https://github.com/fabiospampinato/stdin-blocker/issues"},"homepage":"https://github.com/fabiospampinato/stdin-blocker#readme","_id":"stdin-blocker@2.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-fZ3txWyDSxOll6+ajX9akA5YzchyoEpVNsH8eWNY/ZnzlRoM0eW/zF8bm852KVpYutjNFQFvEF/RdZtlqxIZkQ==","shasum":"91c5b3d7eb894a2492c50116ac28b610f954243f","tarball":"http://registry-npm.ywwl.com/stdin-blocker/download/stdin-blocker-2.0.0.tgz","fileCount":12,"unpackedSize":7188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICRHEB7v8JsT6Wlwd6t97egBUKuDiCF+SIb6lk1C0D12AiBarO1Kh6K5bycB5PGGUJuD6u7Ot5dsVCpzvozXwmjJpA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTfTEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrnxAAiqP/RZpHUH6AKx2ylC6uEaPggSG3vI3Wldy++JTM9efdIlOI\r\nQq52mKPewOvsiJrsTl3IZIeHI3JJPDR1nShlGhNnFje7/iv1A+jm6eeH26VR\r\nr5Ep/CGg01TgJDxs8Z5voHbHcQ2S3kZMYR8uDoIx3MRRivyClofSiVwEDr7/\r\nJSql4Ff3crqBtymg52SFR43bo0NgoEC/IUuBP0cvTo9X35OYb3IYjjFVJbi2\r\nEYqC6M4A/bo7p11sgWe+70kVvJY8eTe96FpspxkSYuGWnaqRihVN5+L44AsA\r\n2xg1RkNHYHihHsmn186KabqAZedM6rIZncSlg+0WHNMtzZ2x+V/O+IoAK/XE\r\nstJ3IKaT3fjyXGkVUO/s5ewn+DhcwD5Gu3KzP+usa65xILueu89bU0R8RzMa\r\nkcdrEG0XHrnhVD+NH2+73mQNTM2UvyX6tJmK86gGsOeSnfIC0Aa7NPcBAXK7\r\nv8bOGJAUnxxH6yZf8Ldzg7grX+3xs9KkP8PeZx8e2IdVQufej9/bfgwsmrUV\r\n7yO4X/nWHNPC8ryRW0+zjGxF5cqimo81P5GLI31DI+sP8gJ0q9M8F0fVM8cU\r\nKaMvlITZ5jOGkWsAytsKTgdWycR7vyzEsaYwvN/SgZ5olp2e4uu8D8y5F+rv\r\n3s1WF2ll6C59v3fV8w5IdC5zFxRvwRJKlmU=\r\n=kBCL\r\n-----END PGP SIGNATURE-----\r\n","size":2741,"noattachment":false,"key":"/stdin-blocker/-/stdin-blocker-2.0.0.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stdin-blocker_2.0.0_1649276100169_0.7753027061302378"},"_hasShrinkwrap":false,"readme":"# Stdin Blocker\n\nA tiny library for blocking stdin keypresses, except for ctrl+c. Useful while displaying animations.\n\n## Install\n\n```sh\nnpm install --save stdin-blocker\n```\n\n## Usage\n\n```ts\nimport Blocker from 'stdin-blocker';\n\nBlocker.isBlocked (); // => false, stdin input is not blocked\n\nBlocker.block ();\n\nBlocker.isBlocked (); // => true, stdin input is blocked\n\nBlocker.unblock ();\n\nBlocker.isBlocked (); // => false, stdin input is not blocked\n\nBlocker.toggle ();\n\nBlocker.isBlocked (); // => true, stdin input is blocked\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1649276100377,"_cnpm_publish_time":1649276100377,"dist-tags":{"latest":"2.0.1"}}