1.0.9 • Published 1 year ago

tgz-get v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

tgz-get

Specifically for downloading npm offline tgz packages, it supports .lock, .json, packageName@*, and can be used in conjunction with verdaccio.

Demo

cd server && yarn && yarn start

or

cd server && npm install && npm run start

Build

Support packaging into es, cjs,umd etc.

yarn build:es

or

yarn build:umd

Use

Provide two APIs, tgz and getCacheData

tgz(packageInfo,callback) and getCacheData()

Config

The Config file creates a config.yaml format file in the root directory.

npmUrl: Npm proxy address, default https://registry.npmjs.org/

outDir: File output address after downloading, default ./storage

expire: File storage validity period, default 30 days

compress_type: Compression type, optional value zip or tar,default zip