mingine
16 starspopular github
A module that finds the minimum engine versions your dependencies need.
A module that finds the minimum engine versions your dependencies need.
mingine collects the engines field from every package in node_modules and works out the minimum usable version of each engine, along with which packages asked for which versions.
const mingine = require('mingine');
async function getNodeMinimumEngine() {
const engines = await mingine();
console.log(engines.node ? engines.node.minimum : undefined);
}
Pass { path } to look at a different project's node_modules.