cutenode
all projects

mingine

A module that finds the minimum engine versions your dependencies need.

status
popular
lives on
github
stars
16
last push
jan 5, 2021

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.