npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.codewriter.npm-package-loader

v0.2.6

Published

External dependencies downloader for npm packages

Downloads

2

Readme

Npm Package Loader Github license

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

Create asset

Asset must be placed next to package.json

4. Setup asset

Asset content

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-loader dependency 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 in package.json.

Install deps

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.

Install package

Window can be manually opened from Window / Check Npm Package Loaders menu

Additional assets will be downloaded and unpacked after confirmation.

Import package

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