command-prompt-nodejs

1.0.1 • Public • Published
const Prompt = require("command-prompt-nodejs");

const prompt = new Prompt();
prompt.OnData = (data)=>{
	console.log("DATA => \n" + data);
};
prompt.OnError = (err)=>{
	console.error("ERR => \n" + err);
};
prompt.Command("docker image ls");

expected :
DATA =>
REPOSITORY    TAG       IMAGE ID       CREATED        SIZE
demo-12-web   latest    c2b7ff77add7   13 hours ago   999MB
demo          latest    fccc79d5f9ff   14 hours ago   999MB

so easy to use it just install and discover it :)

Readme

Keywords

Package Sidebar

Install

npm i command-prompt-nodejs

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

1.57 kB

Total Files

3

Last publish

Collaborators

  • mustafaozver