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/calendar

v1.1.2

Published

A tool for adding current synchronized dates to the headlines of Days in index.yaml

Readme

Calendar

A CLI tool for synchronizing and inserting dates into course schedules defined in index.yaml.

Table of Contents

Overview

The calendar package automates the process of adding synchronized dates to course schedules. It ensures that each day in the schedule is properly labeled with its corresponding date, making schedules easier to follow and manage.

Features

  • Inserts synchronized dates into day entries in index.yaml.
  • Supports resetting (removing) all inserted dates.
  • Validates input arguments and file structure.
  • Creates backups of the original file to prevent data loss.
  • 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

In the same directory where the index.yaml file is located, run the calendar tool using the iron-tools command:

iron-tools @calendar -f <index.yaml> -d <day> -m <month> -y <year> [--reset]

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.

Examples

Insert synchronized dates starting from January 1, 2023:

$ 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

Reset all inserted dates:

$ iron-tools @calendar -f ./index.yaml --reset
✨ Calendar process started ✨
• Validating arguments
  → validation for input file: "index.yaml"
  ✓ 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
• Resetting synchronized dates
→ Removed all inserted dates (total days: 55)
  ✓ Date reset complete
• Writing updated schedule to "index.yaml"
  → Updated schedule saved to index.yaml
  ✓ File writing complete

Error Handling

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

  • Invalid file path or format.
  • Incorrect date format.
  • Missing required arguments.

How It Works

  1. Parses the input index.yaml file to identify day blocks.
  2. Inserts synchronized dates into each day block based on the provided start date.
  3. Creates a backup of the original file to ensure data safety.
  4. Writes the updated schedule back to the file.

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.