Skip to content
/ npmi Public

Quick no-dep package-lock installer for any platform

License

Notifications You must be signed in to change notification settings

stck/npmi

Repository files navigation

NPMCI

Utils to quick install node_modules




Platform Build status
Windows Windows
MacOS Macos
Ubuntu Ubuntu
Docker Alpine Docker Alpine
Docker Debian Docker Debian
Docker Centos Docker Centos

Dependencies

There are no dependencies for this project

Features

  • In-memory gzip extraction (no IOPS required)
  • Built-in file filter
  • Concurrent install

Current limitations

  • node-gyp won't work
  • postinstall actions won't be called
  • package-lock.json handling only

Roadmap

  • Keep-alive for connections
  • yarn.lock
  • package-lock.json (version 2)

CLI flags

--verbose - Verbose output to stdout

--dev - Install dev dependencies

--optional - Install optional dependencies

By default, dev & optional dependencies are omitted.

Ignore file

Binary uses .pkgignore to find file globs that will be omitted by inflate.

# Wildcards
license*
# Extension
*.md
# JS/TS
*.?s

If no .pkgignore is present - default config is used

"licen?e*
authors*
readme*
funding*
changelog*
*.m?d
*.markdown
*.workflow
/.*
/__mocks__*
*.spec.js
*.html
*.txt

How to build

Requirement Version
CMake >=3.10
gcc ~8.10

Use with Unix/MacOS:

cmake  -G "Unix Makefiles" -S "." -B "./build"
cmake --build ./build --target all

Use with Windows:

cmake -G "MinGW Makefiles" -S "." -B "./build"
cmake --build ./build --target all

Tests

Tests are written using CTest, that comes with cmake.

To run tests:

ctest