current-npm require('npm') with fallback. If npm package can not be found, find the required path from the location of npm CLI. Installation npm i current-npm Usage const npm = require('current-npm'); License MIT