$ npm install wtfpm
Detect common package managers.
var wtfpm = require('wtfpm'); wtfpm(function (err, managers) { if (err) throw err; console.log(managers); });