Skip to content
An experimental cli tool for using top-level await
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.eslintrc.json
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

asynode

Build Status

A cli tool for using top-level await. This means you can use await without wrapping the main logic with an async function.

This project was built for fun at 3am and is not suitable for production.

Install

npm install -g asynode

Usage

// somefile.js
const axios = require('axios');

const data = await axios.get(...);

Simply run asynode somefile.js. That's it. no need to wrap the main logic with an async function.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.