tgz-get
v1.0.9
Published
Specifically for downloading npm offline tgz packages, it supports *.lock, .json, packageName@, and can be used in conjunction with verdaccio.
Downloads
14
Maintainers
Readme
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