Toolbox-XToolbox-X

Installation

How to install toolbox-x in your project.

Package Manager

Install toolbox-x using your preferred package manager:

npm install toolbox-x

Module Formats

toolbox-x ships as both ESM and CommonJS:

// ESM (recommended)
import { Chronos } from "toolbox-x";

// CommonJS
const { Chronos } = require("toolbox-x");

Modular Imports

You can import specific submodules for better tree-shaking:

// Guards
import { isValidDateInput } from "toolbox-x/guards";

// Utility functions
import { formatDate } from "toolbox-x/utils";

// Type definitions
import type { ChronosInput } from "toolbox-x/types";

// Constants
import { MONTHS } from "toolbox-x/constants";

// Plugins (imported individually)
import { timeZonePlugin } from "toolbox-x/plugins/timeZonePlugin";
import { seasonPlugin } from "toolbox-x/plugins/seasonPlugin";

Last updated: Fri, May 22, 2026 07:46:19AM (Coordinated Universal Time)

On this page