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

@otocolobus/node-icu-iana-from-windows

v1.0.12

Published

A high-performance Node.js native addon providing seamless conversion from Windows time zone IDs to IANA time zone names using ICU’s official mapping.

Downloads

281

Readme

icu-iana-from-windows

A high-performance Node.js native addon providing seamless conversion from Windows time zone IDs to IANA time zone names using ICU’s official mapping.


Table of Contents


Overview

icu-iana-from-windows leverages the ICU C++ API (getIDForWindowsID) to deliver accurate and reliable time zone conversions. This package is ideal for applications requiring interoperability between Windows environments and systems using the IANA time zone database.


Features

  • Accurate Mapping: Reliably converts Windows time zone IDs (e.g., Pacific Standard Time) to their IANA equivalents (e.g., America/Los_Angeles) using ICU’s official mapping.
  • Straightforward API: Minimal and intuitive interface for easy integration into Node.js projects.
  • Fills a Standards Gap: Leverages the ICU C++ API to bridge the gap between Windows and IANA time zones, addressing the lack of native support in ECMA-402 for Windows IDs.
  • High Performance: Native addon implementation ensures fast and efficient conversions.

Requirements

  • Node.js v18 or higher
  • ICU v74 or higher

Installing ICU

This package requires ICU (International Components for Unicode) development libraries to be installed on your system before building or installing the native addon. You can install ICU using the following methods depending on your platform:

Linux (Debian/Ubuntu)

sudo apt-get update
sudo apt-get install libicu-dev

macOS (Homebrew)

brew install icu4c

Windows (vcpkg)

We recommend using vcpkg to manage native dependencies on Windows:

vcpkg install icu

Make sure to integrate vcpkg with your development environment as described in the vcpkg integration documentation.

Note: Ensure that the ICU development libraries are discoverable by your compiler and Node.js build tools (node-gyp/cmake-js). You may need to set environment variables such as ICU_ROOT or update your PATH accordingly.


Installation

npm install icu-iana-from-windows

Usage

const { convertWindowsToIana } = require("icu-iana-from-windows");

const iana = convertWindowsToIana("Pacific Standard Time");
console.log(iana); // 'America/Los_Angeles'

API Reference

convertWindowsToIana(windowsTimeZone: string, territory?: string): string

  • windowsTimeZone: The Windows time zone identifier to convert.
  • territory (optional): Regional code to refine the mapping (e.g., US for America/Los_Angeles, CA for America/Vancouver).
  • Returns: The corresponding IANA time zone name.
  • Throws: An error if the conversion cannot be performed.

License

MIT