Skip to content

ryangrahamnc/top-level-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Top Level Async

Lets you run an async function at the top level of a node app.

Because people are too afraid of writing ;((async()=>{ /* code */ })());

Install

npm i --save top-level-async

Usage

topLevelAsync = require('top-level-async');
topLevelAsync(async()=>{
    await someFunc();
    console.log('we did it! good job everyone!')
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published