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

harfizer

v1.0.4

Published

> **Convert numbers, dates, and times into words — in 7+ languages, with style.**

Readme

Harfizer — Say Your Numbers, Dates, and Times Out Loud (in Any Language!)

Convert numbers, dates, and times into words — in 7+ languages, with style.

npm version Languages TypeScript License npm

Harfizer is a powerful and extensible package for converting numbers, dates, and times into human-readable words — now supporting 7+ languages including 🇮🇷 Persian, 🇫🇷 French, 🇯🇵 Japanese, 🇨🇳 Chinese, 🇷🇺 Russian, 🇩🇪 German, and 🇪🇸 Spanish.
Built with a plugin-based architecture, Harfizer allows seamless internationalization and high configurability.

If you prefer a language other than English, see the respective documentation above or at the end of this document.


✨ Features

  • ✅ Convert numbers (integers, decimals, negatives)
  • ✅ Convert Gregorian or Jalali dates
  • ✅ Convert time (HH:mm) to natural text
  • ✅ Supports 66-digit numbers
  • ✅ 7+ language plugins — easily extendable
  • ✅ Customizable output with options

💡 Why Harfizer?

  • 🌍 Multilingual support (7+ languages and growing)
  • 🔢 Handles large numbers (up to 66 digits, decimals, negatives)
  • 📅 Date and time conversion with natural phrasing
  • 🔌 Plugin-based and highly extensible
  • ⚙️ Customizable with ConversionOptions
  • ✅ Built with TypeScript — fully typed, safe, and modern

🌐 Supported Languages

| Flag | Language | Plugin | |------|----------|--------| | 🇬🇧 | English | ✅ EnglishLanguagePlugin | | 🇮🇷 | Persian | ✅ PersianLanguagePlugin | | 🇫🇷 | French | ✅ FrenchLanguagePlugin | | 🇯🇵 | Japanese | ✅ JapaneseLanguagePlugin | | 🇨🇳 | Chinese | ✅ ChineseLanguagePlugin | | 🇷🇺 | Russian | ✅ RussianLanguagePlugin | | 🇩🇪 | German | ✅ GermanLanguagePlugin | | 🇪🇸 | Spanish | ✅ SpanishLanguagePlugin |

More languages coming soon...


📦 Installation

Install Harfizer via npm:

npm install harfizer

🚀 Usage

Import the plugin and the CoreConverter from the package:

import { CoreConverter, EnglishLanguagePlugin } from 'harfizer';

const englishPlugin = new EnglishLanguagePlugin();
const converter = new CoreConverter(englishPlugin);

🧠 Methods

convertNumber(input: InputNumber, options?: ConversionOptions): string

Converts an integer, decimal, or negative number to words (digit-by-digit for decimals).

converter.convertNumber("123");
// Output: "one hundred twenty-three"

converter.convertNumber("-456.78");
// Output: "minus four hundred fifty-six point seven eight"

convertTripleToWords(num: InputNumber, lexicon?: any, _separator?: string): string

Converts a number with up to 3 digits.

converter.convertTripleToWords(789);
// Output: "seven hundred eighty-nine"

convertDateToWords(dateStr: string, calendar?: "jalali" | "gregorian"): string

Converts a date string to spoken form.

converter.convertDateToWords("2023/04/05");
// Output: "April 5, two thousand twenty-three"

convertTimeToWords(timeStr: string): string

Converts a time string in "HH:mm" format to spoken form.

converter.convertTimeToWords("09:00");
// Output: "It is nine o'clock"

converter.convertTimeToWords("09:05");
// Output: "It is nine o'clock and five minutes"

📘 Examples

import { CoreConverter, EnglishLanguagePlugin } from 'harfizer';

const plugin = new EnglishLanguagePlugin();
const converter = new CoreConverter(plugin);

console.log(converter.convertNumber("123")); 
console.log(converter.convertDateToWords("2023/04/05")); 
console.log(converter.convertTimeToWords("09:05"));

⚙️ Additional Options

Customize your number output:

const options = {
  customZeroWord: "nil",
  customNegativeWord: "negative",
  customSeparator: " "
};

converter.convertNumber("-123", options);
// Output: "negative one hundred twenty-three"

🌍 Other Language Plugins Documentation


📄 License

MIT


💬 Have suggestions or want to contribute?

Open an issue or PR on GitHub! Contributions welcome 🌟