Installations
npm install stdin2
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=0.12.0
Node Version
0.12.3
NPM Version
3.7.1
Score
66.9
Supply Chain
85.8
Quality
75
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
matjaz
Download Statistics
Total Downloads
1,029
Last Day
1
Last Week
3
Last Month
8
Last Year
56
GitHub Statistics
1 Stars
55 Commits
3 Watching
2 Branches
2 Contributors
Bundle Size
819.00 B
Minified
457.00 B
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
1,029
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
stdin2
Get stdin as a string or buffer, using promise. Supports timeout & tty.
Install
$ npm install --save stdin2
Usage
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})()
API
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.
getStdin([options])
Get stdin
as a string.
Options
- buffer (false) - returns buffer instead of a string
- timeout (Infinity) - rejects after miliseconds, if no data is read
- rejectTTY (false) - rejects if program is run in TTY
License
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 26 are checked with a SAST tool
Reason
27 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-px4h-xg32-q955
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
2.1
/10
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