Socket
Book a DemoInstallSign in
Socket

await-outside

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

await-outside

Await outside async functions

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
5K
6.05%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

await-outside

A better Node REPL for asynchronous exploration

Inspired by https://github.com/princejwesley/Mancy.

From This

$ node
> const request = require('superagent')
undefined
> request.get('https://www.googleapis.com/books/v1/volumes').
... query({key: 'NOT_A_VALID_API_KEY'}).
... query({q: 'paul auster'}).
... then(r => r.body)
Promise { <pending> }
>

To This

$ await-outside
> const request = require('superagent')
undefined
> await request.get('https://www.googleapis.com/books/v1/volumes').
... query({key: 'NOT_A_VALID_API_KEY'}).
... query({q: 'paul auster'}).
... then(r => r.body)
{ kind: 'books#volumes',
  totalItems: 2342,
  items: [ ... ] }
>

FAQs

Package last updated on 19 Nov 2019

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