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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iron-tools/cli

v1.1.2

Published

CLI tool for iron-tools packages

Readme

CLI

A unified command-line interface for all iron-tools packages.

Table of Contents

Overview

The cli package provides a unified command-line interface for all iron-tools packages. It serves as a central entry point for managing course schedules, allowing you to run calendar synchronization and holiday insertion tools through a single command.

Features

  • Unified interface for all iron-tools packages
  • Supports calendar synchronization and holiday management
  • Consistent command structure across all tools
  • Validates input arguments and provides helpful error messages
  • Provides detailed logs for transparency and debugging

Installation

Install the iron-tools CLI globally using npm:

npm install -g @iron-tools/cli
iron-tools --version

Usage

Run the iron-tools command with the appropriate package name and options:

iron-tools @<package-name> [options]

Available Commands

  • @calendar - Synchronize and insert dates into course schedules
  • @holiday - Insert holidays into course schedules

Options

Common options across all commands:

  • -f, --file <filename>: Path to the input YAML file (default: index.yaml)
  • -h, --help: Display help information for a specific command

Command-specific options vary by package. Use iron-tools @<package-name> --help for detailed options.

Examples

Synchronize calendar dates:

$ iron-tools @calendar -f ./index.yaml -d 7 -m 4 -y 2025
✨ Calendar process started ✨
• Validating arguments
  → Validating input file: "index.yaml", day: 7, month: 4, year: 2025...
  ✓ arguments validation complete
• Generating backup file
  → Creating backup of "index.yaml" to "backup-index.yaml"
  ✓ Backup created successfully
• Reading and parsing input file
  → Successfully parsed 2578 lines from "index.yaml"
  ✓ File parsing complete
• Identifying day blocks in course file
  → Located 55 day blocks in course structure
  ✓ Day identification complete
• Inserting synchronized dates
  → Inserted dates starting from "04/07/2025" (total days: 55)
  ✓ Date insertion complete
• Writing updated schedule to "index.yaml"
  → Updated schedule saved to index.yaml
  ✓ File writing complete

Insert a holiday:

$ iron-tools @holiday -f ./index.yaml -w 2 -d 5
✨ holiday process started ✨
• Validating arguments
  → validation for input file: "index.yaml", weekNum: 2, dayNum: 5
  ✓ arguments validation complete
• Generating backup file
  → Creating backup of "index.yaml" to "backup-index.yaml"
  ✓ Backup created successfully
• Reading and parsing input file
  → Successfully parsed 2578 lines from "index.yaml"
  ✓ File parsing complete
• Identifying week blocks in course file
  → Located 11 week blocks in course structure
  ✓ Week identification complete
• Inserting holiday at Week 2, Day 5
  → Inserted holiday at position 9 (total days now: 56)
  ✓ Holiday designation complete
• Writing updated schedule to "index.yaml"
  → Updated schedule saved to index.yaml
  ✓ File writing complete

Display help for a specific command:

$ iron-tools @calendar --help
Usage: iron-tools @calendar [options]

Options:
  -d, --day <number>     Day of the start date
  -m, --month <number>   Month of the start date
  -y, --year <number>    Year of the start date
  -f, --file <filename>  Path to the input YAML file (default: "index.yaml")
  --reset               Reset all inserted dates
  -h, --help            Display help for command

Error Handling

The CLI provides detailed error messages for common issues, such as:

  • Invalid command or package name
  • Missing required arguments
  • Invalid file path or format
  • Package-specific validation errors

How It Works

  1. Parses the command-line arguments to identify the target package and options
  2. Validates the package name and required arguments
  3. Loads and executes the specified iron-tools package
  4. Passes through all package-specific options and arguments
  5. Provides unified error handling and logging across all packages

License

This project is licensed under the MIT License. See the LICENSE file for details.

⚠️ This is a private proprietary package. Not intended for public use or redistribution.