exec-to-html

1.0.9 • Public • Published

exec-to-html

Execute command sending output through stream to client

stable npm-version downloads linux windows coverage climate dependencies qa-control

language: English also available in: Spanish

Main goal

  • To call process in the back-end sending the output to de front-end

Install

$ npm install exec-to-html

Ejemplo de uso

Use example

var execToHtml = require('exec-to-html');

execToHtml.run('npm-check-updates',{echo:true}).onLine(function(lineInfo){
	if(lineInfo.origin === 'stderr'){
		console.error(lineInfo.text);
	}else{
		console.log(lineInfo.text);
	}
}).then(function(exitCode){
	if(exitCode){
		console.log('exit code =',exitCode);
	}
});

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i exec-to-html

Weekly Downloads

14

Version

1.0.9

License

MIT

Unpacked Size

20.6 kB

Total Files

7

Last publish

Collaborators

  • tute