Npm Package Loader
Load npm packages that contain large asset files directly into your Unity project. Npm Package Loader enables developers to archive assets into unitypackage format, embed them in npm packages or host on external servers, then automatically download and unpack them during installation. Streamlines distribution of oversized assets that exceed repository size limits while maintaining standard npm package management workflows.
com.codewriter.npm-package-loader 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/npm-package-loader.git README Markdown
Copy this to your project's README.md
## Installation
Add **Npm Package Loader** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/npm-package-loader.git
```
[](https://www.pkglnk.dev/pkg/npm-package-loader)README
Npm Package Loader 
Npm offers a convenient way to manage packages. However, some packages are too large and cannot be uploaded to the repository, or require installation directly into the project's Assets folder.
Npm Package Loader allow you to archive some assets into a standard
unitypackage package and embed it into npm package or upload
on the ftp server This assets will be automatically downloaded
and unpacked directly into the project.
How to create package?
1. Install Npm Package Loader and Npm Publisher Support
2. Create package.json
Might look something like:
{
"name": "com.codewriter.npm-package-loader-demo-sdk",
"displayName": "Npm Package Loader DEMO",
"description": "Do not use",
"version": "0.1.0",
"unity": "2019.1",
"author": "Vanifatov Vlad (https://github.com/vanifatovvlad)",
"dependencies": {}
}
3. Create UnityPackage Loader asset
Asset must be placed next to package.json
4. Setup asset
You can add individual files or entire folders to Packed Assets.
5. Add dependency
External loaders section will appear in the Npm Publish window
after creating the Loader. Add npm-package-loader dependency
using the Add button and publish the package.
Then it can be installed from the npm repository.
If
npm-package-loaderdependency is marked as Unknown, you need to check that Npm Package Loader package is installed correctly or manually specify the current version of the package inpackage.json.
How to install package?
Created package can be downloaded from the npm registry. A confirmation window for downloading additional files should appear automatically after installing the package.
Window can be manually opened from
Window / Check Npm Package Loadersmenu
Additional assets will be downloaded and unpacked after confirmation.
Install
Library distributed as git package (How to install package from git URL)
Git URL: https://github.com/codewriter-packages/NpmPackageLoader.git
FAQ
What is the Assets/Packages folder created for?
This is a system folder needed to keep track of installed packages.
How do I update a package to a new version?
The new version can be downloaded via npm. You should automatically be prompted to update additional files after updating the npm package.
How do I reinstall a package?
You can remove the asset subfolder from Assets/Packages and execute the command Window/Check Npm Package Loaders




No comments yet. Be the first!