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

wle-uuidify

v0.2.6

Published

Switch Wonderland Engine project incremental number IDs to UUID

Downloads

63

Readme

wle-uuidify

Experimental utility tool to switch incremental number IDs of a Wonderland Engine project to UUIDs.

Source code: https://github.com/SignorPipo/wle-aligner

NPM package: https://www.npmjs.com/package/wle-uuidify

:warning: Warning

This tool is very experimental.
Always verify that the aligned project is OK after using the tool.
Make sure to use version control.

Installing

npm install --save-dev wle-uuidify

Running

From the command line:

npm exec wle-uuidify -- my-project.wlp

From an NPM script (in package.json):

wle-uuidify my-project.wlp

Arguments

The command accepts the following arguments:

  • <project-paths...>:
    • file paths to the Wonderland Engine project files that need to be uuidified
    • each path is a glob pattern, which means you can use use *.wlp to uuidify every wlps in your folder

Options

The following options are available:

  • -o | --output <path>:
    • where the uuidified project file will be stored
    • defaults to <project-dir>/uuidified-<project-name> when this option is not explicitly specified
    • if multiple project paths are specified, the --output option can't be used
  • -r | --replace:
    • replace the given project file instead, ignoring the --output option
  • -u | --unsafe:
    • uuidify the project even if there is no editor bundle, it contains errors, or for component properties that might not be incremental number IDs
    • be sure to out extra care when checking the differences with the original project after performing the operation with this option
  • -d | --duplicates:
    • checks if there are duplicated IDs in the project
    • this check is normally performed when uuidifying the project, so you can use this option when you just want to check that your project has no duplicates but do not actually need to uuidify it
  • -b | --editor-bundle <path>:
    • path to the project bundle, usually generated by building the project with the Wonderland Engine editor
    • defaults to <project-dir>/cache/js/_editor_bundle.cjs when this option is not explicitly specified
  • -e | --editor-bundle-extras <path>:
    • add extra definitions to the editor bundle via a JS script
    • defaults to <project-dir>/editor-bundle-extras.js when this option is not explicitly specified
    • this option might be needed when the tool complains for some missing definitions, like window or window.location not being defined
    • you can fix these issues by adding the missing definitions to the extras script
    • example:
      let window = {
          navigator: {},
          location: {}
      };
      
      class ExampleClass { }
      
      // This might be needed for some libraries that define their classes in the old js way, like Howler
      let ExampleObjectDefinedClass = {
          prototype: {}
      };
  • -h | --help:
    • display help for the command

Credits