debian-package-installed

0.0.2 • Public • Published

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');
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i debian-package-installed

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • wesleytodd