Gathering detailed insights and metrics for stdin2
Gathering detailed insights and metrics for stdin2
npm install stdin2
Typescript
Module System
Min. Node Version
Node Version
NPM Version
66.9
Supply Chain
85.8
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,029
Last Day
1
Last Week
3
Last Month
8
Last Year
56
1 Stars
55 Commits
3 Watching
2 Branches
2 Contributors
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
0%
1
Compared to previous day
Last week
50%
3
Compared to previous week
Last month
300%
8
Compared to previous month
Last year
-11.1%
56
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
27 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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