Code coverage report for src/npm-path.js

Statements: 100% (5 / 5)      Branches: 50% (1 / 2)      Functions: 100% (1 / 1)      Lines: 100% (5 / 5)     

All files » src/ » npm-path.js
1 2 3 4 5 6 7 8 9  1 1 1 1     1  
// hack to find npm bin script reliably
function findNpmPath() {
  var os = require('os');
  var type = os.type();
  return (/windows/gi).test(type) ? 'npm.cmd' : 'npm';
}
 
module.exports = findNpmPath();