MCPcopy Create free account
hub / github.com/npm/cli / validate-engines.js

File validate-engines.js

lib/cli/validate-engines.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// This is separate to indicate that it should contain code we expect to work in all versions of node >= 6.
2// This is a best effort to catch syntax errors to give users a good error message if they are using a node version that doesn't allow syntax we are using such as private properties, etc.
3// This file is linted with ecmaVersion=6 so we don't use invalid syntax, which is set in the .eslintrc.local.json file
4

Callers

nothing calls this directly

Calls 2

onMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected