Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 27, 2024 via pnpm
Package summary
Share
0
issues
1
license
1
MIT
Package created
13 Feb 2014
Version published
20 Jan 2015
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
get-stdin@4.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of get-stdin 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does get-stdin do?

Get-stdin is an npm package that assists developers in retrieving stdin as a string or a buffer. 'stdin' stands for Standard Input, a fundamental concept in Node.js for receiving input data. Under the hood, get-stdin generates a promise that resolves when the 'end' event triggers on the 'stdin' data stream, indicating that all incoming data has been read.

How do you use get-stdin?

Leveraging get-stdin in your Node.js project is a straightforward process. First, you need to install the npm package with $ npm install get-stdin. Once installed, you can use the module in your Javascript file. Here's an example of how to import and use get-stdin:

// Import the module 
import getStdin from 'get-stdin';

// Use getStdin to capture stdin data
console.log(await getStdin());

In a Terminal or Command Prompt, you can pipe some data to your JS file and observe get-stdin in action:

$ echo unicorns | node example.js
// Outputs: unicorns

If you are working in a TTY context, both methods (getStdin() and getStdin.buffer()) will return a promise that resolves to an empty string or an empty Buffer respectively.

Where are the get-stdin docs?

You can find the complete documentation and usage of get-stdin within its GitHub repository at git+https://github.com/sindresorhus/get-stdin.git. Beyond the basic usage and API documentation, the README also informs on related npm packages, and provides details on professional support for this package via Tidelift subscription.