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

@seidr/nitro-converter

v1.3.3

Published

Serverside javascript library for bundling .nitro assets

Downloads

8

Readme

Nitro Converter

This tool is used to generate .nitro bundled assets for use with the Nitro Client

Configuration

You must rename configuration.json.example to configuration.json

The simplest way to set your configuration is by changing the external.variables.url option. The converter will pull all urls from this file if the main configuration has them set to null or ""

You may set any of the urls to a local path on your system or a remote url. A local path is recommended as the tool will run a lot quicker for downloading.

| key | value | | ------------------------------ | ------------------------------------------------------------------------------------ | | output.folder | The folder where converted assets will be saved to | | flash.client.url | The base url where figures/pets/effects are stored, eg https://url/gordon/ | | furnidata.load.url | The url to your furnidata, can be XML or JSON, eg https://url/gamedata/furnidata.xml | | productdata.load.url | The url to your productdata.txt, eg https://url/gamedata/productdata.txt | | figuremap.load.url | The url to your figure map, can be XML or JSON, eg https://url/gordon/figuremap.xml | | effectmap.load.url | The url to your effect map, can be XML or JSON, eg https://url/gordon/effectmap.xml | | dynamic.download.pet.url | The full url where pets are stored, eg https://url/gordon/%className%.swf | | dynamic.download.figure.url | The full url where figures are stored, eg https://url/gordon/%className%.swf | | dynamic.download.effect.url | The full url where effects are stored, eg https://url/gordon/%className%.swf | | flash.dynamic.download.url | The base url where furniture is stored, eg https://url/dcr/hof_furni/ | | dynamic.download.furniture.url | The full url where furniture is stored, eg https://url/dcr/hof_furni/%className%.swf | | external.variables.url | The url to your external variables, eg https://url/gamedata/external_variables.txt | | external.texts.url | The url to your external texts, eg https://url/gamedata/external_texts.txt | | convert.productdata | Either 0 to skip or 1 to run | | convert.externaltexts | Either 0 to skip or 1 to run | | convert.figure | Either 0 to skip or 1 to run | | convert.figuredata | Either 0 to skip or 1 to run | | convert.effect | Either 0 to skip or 1 to run | | convert.furniture | Either 0 to skip or 1 to run | | convert.pet | Either 0 to skip or 1 to run |

Running the converter

Make sure you run yarn install && yarn build before first use.

To run the converter open a new terminal / console window in the main converter directory.

The converter has a few different start commands:

| key | value | | ---------------------- | ---------------------------------------------------------- | | yarn build | Will run tsc and build .js from .ts | | yarn start | Will download and convert assets as set in the config | | yarn start:bundle | Will bundle decompressed .nitro assets (json / png) | | yarn start:extract | Will extract .nitro assets which can be used for editing | | yarn start:convert-swf | Will convert inputted .swf assets to .nitro |

When you run start:bundle | start:extract | start:convert-swf for the first time it will automatically generate a folder structure for placing your assets for conversion.

The converter will skip any assets that already exist but will always reconvert your XMLs / copy your JSONS to the gamedata folder to ensure you always have the latest copy.