Download the specified NPM package to your local directory, preserving the original file structure. A compressed version of the CSS and JS files will be automatically generated.
You can install it directly through the npm command.
$ npm i package-downloader -g
Or install the latest development version to experience the latest features.
$ npm i package-downloader@dev -g
After installation, you can use the pkgdl command directly in the current directory. For example, execute the following command:
$ pkgdl @litert/[email protected]
After execution, an npm folder will be generated in the current directory, which will contain version 3.4.9 of the loader library.
Just add a space between the libraries to download multiple libraries at the same time, for example:
$ pkgdl @litert/[email protected] [email protected]
Use the -p or --path parameter to specify the directory, for example:
$ pkgdl -p sub @litert/[email protected] [email protected]
This will automatically create a sub folder in the current directory, and generate an npm folder within the sub folder.
If you're using it in China Mainland, you can use the -l or --location option followed by cn to download the mirror package for China Mainland. For example:
$ pkgdl -l cn @litert/[email protected] [email protected]
This library is published under Apache-2.0 license.