Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including npm-install-checks with all npm packages installed. Try it out:

var npmInstallChecks = require("npm-install-checks")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

npm-install-checks v3.0.2

checks that npm runs during the installation of a module


A package that contains checks that npm runs during the installation.


.checkEngine(target, npmVer, nodeVer, force, strict, cb)

Check if node/npm version is supported by the package. If not strict and it isn't supported, cb is called with the error object as its second argument.

Error type: ENOTSUP

.checkPlatform(target, force, cb)

Check if OS/Arch is supported by the package.


.checkCycle(target, ancestors, cb)

Check for cyclic dependencies.

Error type: ECYCLE

.checkGit(folder, cb)

Check if a folder is a .git folder.

Error type: EISGIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free