exec-to-html
Execute command sending output through stream to client
Last updated 5 months ago by tute .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install exec-to-html 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.8                                ...           latest (5 months ago)

17 Versions

  • 1.0.8                                ...           5 months ago
  • 1.0.7                                ...           5 months ago
  • 1.0.5                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.10                                ...           4 years ago
  • 0.0.9                                ...           4 years ago
  • 0.0.8                                ...           4 years ago
  • 0.0.7                                ...           4 years ago
  • 0.0.6                                ...           4 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (17)

Copyright 2014 - 2016 © taobao.org |