mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 23:45:33 +00:00

PR-URL: https://github.com/nodejs/node/pull/20190 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
5 lines
145 B
JavaScript
5 lines
145 B
JavaScript
'use strict';
|
|
const packageJson = require('package-json');
|
|
|
|
module.exports = name => packageJson(name.toLowerCase()).then(data => data.version);
|