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

@rod2ik/tablesort-date-i18n

v0.2.3

Published

Locale-aware numeric date sorting extensions for Tablesort.

Readme

Tablesort Date i18n

Locale-aware, deterministic numeric date sorting extensions for Tablesort.

The package adds:

date.dmy
date.mdy
date.ymd

and resolves automatic data-sort-method="date" headers from explicit configuration or browser locale before Tablesort is initialized.

Install

yarn add tablesort @rod2ik/tablesort-date-i18n
import Tablesort from "tablesort";
import { registerDateSorters, prepareTable } from "@rod2ik/tablesort-date-i18n";

registerDateSorters(Tablesort);
prepareTable(document.querySelector("table"));
new Tablesort(document.querySelector("table"));

Browser builds, CommonJS, ESM and TypeScript declarations are included.

Key guarantees

  • strict DMY/MDY/YMD parsing;
  • /, -, and . separators by default;
  • consistent separator inside one value;
  • four-digit years and real calendar-date validation;
  • explicit configuration precedence before locale inference;
  • no browser-dependent new Date(localizedString) parsing;
  • standalone implementation that xTables can consume without duplicating date logic.

Documentation

The full documentation is the canonical reference:

  • Installation and browser load order
  • Usage and automatic header preparation
  • Supported formats and parser rules
  • Configuration precedence and locale inference
  • Complete API reference and TypeScript surface
  • Runtime architecture and sorting/parsing design
  • xTables integration
  • Troubleshooting
  • Development, vendor, testing, GitLab Pages and release workflows

Documentation source lives under site/docs/ and is published at:

https://rod2ik.gitlab.io/tablesort-date-i18n/

Development

corepack enable
yarn install --immutable
python3 -m pip install --break-system-packages -r site/requirements.txt

yarn dev

The development site executes the browser bundle built from the current local source. Generated vendor files are synchronized from an explicit whitelist in vendor.config.mjs.

Before pushing:

yarn bfc

See site/docs/development/ for the authoritative workflow and command reference.

Versioning and releases

package.json is the single source of truth for the project version.

A normal push verifies the project and deploys the current default-branch documentation to GitLab Pages. A matching tag:

git tag vX.Y.Z
git push origin vX.Y.Z

triggers verification, npm Trusted Publishing and a GitLab Release. The tag must equal v + package.json.version.

License

GNU GPL version 3 or later.