Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sget

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sget

Async / Sync read line for Node.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

sget badge

Async / Sync read line for Node.

Install

npm install sget

Description

Reads a line from the standard input synchronously if no callback is specified, otherwise reads it asynchronously. Think C gets for Node.

Usage

var sget = require('sget');

var something = sget('Say something. I\'ll wait.');
console.log('You said', something);

sget('Leave word and you will be heard.', function(data) {
  console.log('I heard you said', data);
});
console.log('\nThis test is not over.');

Test

./test.js

If the above fails, you may need to give execute permissions to the file owner, just run chmod u+x test.js. Click here for more info.

Help

Do you want to help? Open an issue here. Comments, feedback and / or pull requests are welcome.

License

MIT © Jorge Bucaran

Keywords

FAQs

Package last updated on 24 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc