MCPcopy Index your code
hub / github.com/shelljs/shx / checkEngines

Function checkEngines

scripts/check-node-support.js:29–35  ·  view source on GitHub ↗
(minNodeVersion, pack)

Source from the content-addressed store, hash-verified

27}
28
29function checkEngines(minNodeVersion, pack) {
30 var expectedEnginesNode = '>=' + minNodeVersion;
31 if (pack.engines.node !== expectedEnginesNode) {
32 var msg = 'Update package.json to fix the "engines" attribute';
33 throw new Error(msg);
34 }
35}
36
37function assertDeepEquals(arr1, arr2, msg) {
38 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…