Socket
Socket
Sign inDemoInstall

repl-promised

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    repl-promised

Make any Node.js REPL support promises (Promises/A+).


Version published
Weekly downloads
829
decreased by-5.8%
Maintainers
1
Install size
92.8 kB
Created
Weekly downloads
 

Readme

Source

repl-promised

Make any Node.js REPL support promises (Promises/A+).

Usage

Either use one of the included "node-promised" or "coffee-promised" executables, or setup your own REPL:

var repl = require("repl"); var promisify = require("repl-promised").promisify; promisify(repl.start({}));

Commands that return promises will delay printing until the promise is resolved:

Q.delay(1000).then(function() { return "output after 1 second!"; }) 'output after 1 second!'

Keywords

FAQs

Last updated on 28 Jun 2013

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc