UNPKG

better-npm-audit

Version:

Reshape into a better npm audit for the community and encourage more people to include security audit into their process.

14 lines (13 loc) 395 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getNpmVersion = void 0; var child_process_1 = require("child_process"); /** * Get the current npm version * @return {String} The npm version */ function getNpmVersion() { var version = child_process_1.exec('npm --version'); return version.stdout.toString(); } exports.getNpmVersion = getNpmVersion;