1.2.2 • Published 8 years ago

npm-package-cache v1.2.2

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

npm-package-cache

A simple script that hashes the package.json file. Stores a archive in cache folder. On next install checks if there is a file with the same hash. If so it extracts that else it will do "npm install" and then create a cached hash archive.

This script idea is heavily based on npm-cache by swarajban. But without bower and composer compatibility . I suggest you check his out.

Requirements

NOTE: this scripts requires 7zip command-line tool to work

Install with brew

brew install p7zip

Install with Chocolatey

choco install 7zip.commandline

Installation

npm install -g npm-package-cache

Usage

Install packages

npm-package-cache install
force install

You can also add -f to make do an npm install --force if you need to

npm-package-cache install -f

Clean cache

To remove all cached files do

npm-package-cache clean

Notice

This script is used for personal projects. Maintenance hasn't been thought out.

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.8

9 years ago

1.1.7

9 years ago

1.1.6

9 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.1

9 years ago