1.0.0 • Published 5 years ago

node-install-ensure v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

node-install-ensure

Asyncronous require packages, install them, as a set

Usage

const ensure = require('node-install-ensure');

ensure(['fs','async','sqlite3'],(err,[fs,async,sqlite3])=>{
 fs.createReadStream('/etc/hosts').pipe(process.stdout);
});

Asynchronous

This will be non-blocking while these modules are loaded.

Installs

If a module isn't installed it will install it. That's what it means to ensure something.