Gathering detailed insights and metrics for stdin2
Gathering detailed insights and metrics for stdin2
Gathering detailed insights and metrics for stdin2
Gathering detailed insights and metrics for stdin2
Get stdin as a string or buffer, using promise. Supports timeout & tty.
npm install stdin2
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
1,057
Last Day
2
Last Week
5
Last Month
12
Last Year
70
1 Stars
55 Commits
2 Watchers
2 Branches
2 Contributors
Updated on Oct 31, 2020
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
stdin2@1.0.0
Size
1.69 kB
NPM Version
3.7.1
Node Version
0.12.3
Cumulative downloads
Total Downloads
Last Day
100%
2
Compared to previous day
Last Week
66.7%
5
Compared to previous week
Last Month
100%
12
Compared to previous month
Last Year
27.3%
70
Compared to previous year
Get stdin as a string or buffer, using promise. Supports timeout & tty.
$ npm install --save stdin2
1// example.js 2const getStdin = require('stdin2') 3 4getStdin().then(str => { 5 console.log(str) 6})
$ echo unicorns | node example.js
unicorns
Using ES7 await
1import getStdin from 'stdin2' 2 3(async function () { 4 try { 5 console.log(await getStdin()) 6 } catch (e) { 7 console.error(e) 8 } 9})()
Function returns a promise that is resolved when the end
event fires on the stdin
stream, indicating that there is no more data to be read.
Get stdin
as a string.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 6/10 approved changesets -- score normalized to 6
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More