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

gzwmap-cli

v1.2.1

Published

A CLI tool to make development of the gzwmap easier.

Downloads

121

Readme

GZWMap CLI

Table of contents

Description

GZWMap CLI is a command-line utility designed to simplify the process of generating unique IDs for various markers and elements within the gzwmap project. With the ability to create IDs for Tasks, Objectives, Keys, LZs, Locations, POIs, and Items, this tool allows developers to quickly and efficiently generate identifiers with custom lengths and prefixes, ensuring smooth integration into the gzwmap project. Additionally, it includes a validation tool for checking the uniqueness of IDs across the project files.

Installation

To install the GZWMap CLI globally on your system, run the following command:

npm install -g gzwmap-cli

Usage

Once installed, you can use the GZWMap CLI by running the following command in your terminal. If it doesn’t work immediately, restart your terminal session:

gzwmap-cli <command> <options>

Commands

Below are the available commands for the GZWMap CLI:

gen

The gen command generates one or more unique IDs with a chosen prefix. You can specify the number of IDs to generate and their length.

gzwmap-cli gen [amount] [length] [-p, --prefix <char>]
  • amount: Number of IDs to generate (default: 1)
  • length: Length of the generated IDs (default: 6)
  • -p, --prefix <char>: Override the default ID prefix with a custom prefix.

Example

gzwmap-cli gen 3 8 -p C

This command will generate 3 IDs, each 8 characters long, with the prefix "C".


check

The check command scans the current project directory to ensure that all generated IDs are unique. It can also be run with the --force option to automatically use the current working directory without prompting for confirmation.

gzwmap-cli check [-f, --force]
  • -f, --force: Bypasses the confirmation prompt and uses the current working directory.

Example

gzwmap-cli check -f

This command will check for duplicate IDs within the current directory, without asking for directory confirmation.

Available Prefixes

When generating IDs, you can choose from the following predefined prefixes:

Task
Objective
Key
LZ
Location
POI
Item

Additional Information

This tool is specifically designed for generating and managing IDs within the gzwmap project. It is tailored to support the unique data requirements of the project, such as creating Task, Objective, Key, LZ, Location, POI, and Item IDs. As this CLI is built for a specific use case, pull requests or issues suggesting functionality for generating IDs for unrelated projects will not be accepted. Please use the tool as intended to maintain compatibility and consistency within the gzwmap project.

Contributing

Contributions are encouraged! If you’d like to help improve the GZWMap CLI, feel free to open an issue or submit a pull request on the GitHub repository. Please ensure your changes are aligned with the project's goals and are well-documented.

Changes

1.0.0 (Initial Release)

Released the first version of the CLI tool.

1.0.1 (README Updates)

Enhanced the README with additional details.

1.1.0 (ID Generation Limits)

Added limits for the gen command to prevent generating more than 1000 IDs at a time to avoid performance issues.

1.1.1 (Publish Checklist)

Introduced a checklist for consistent releases and publishes.

1.2.0 (Duplicate ID Checker)

Added the check command to validate that all IDs across the project are unique.

1.2.1 (Bugfix Release)

Major fix for the check command to properly handle and report multiple occurrences of duplicate IDs across different files.