Skip to content

Node-Ops/debian-package-installed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Is that package installed?

$ npm install debian-package-installed

Checks to see if a package is installed on a Debian system by running dpkg-query -w <package>. Returns the child process that was spawned. Example:

var installed = require('debina-package-installed');
installed('nginx', {
	// spawn options
	stdio: 'inherit' // See the full output
}).on('close', function(code) {
	if (code !== 0) return console.log('Package not installed');
	console.log('Package installed');
});

About

Check if a package is installed on a Debian system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published