spawn-connector
v1.0.0
Published
A simple API for any command-line-based script
Downloads
1
Readme
spawn-connector
Install
Install with npm:
npm install spawn-connector
API - Wakeup connector and write command
var sc = require('spawn-connector')('mongo');
Promise.resolve().then(()=>c.write('show dbs')).then(s=>console.log(s.stdout)).then(()=>c.close());
// => Gets array of database names + session closed message