1.0.9 • Published 3 years ago

exec-to-html v1.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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

1.0.9

3 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.5

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago