
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
> **Convert numbers, dates, and times into words — in 7+ languages, with style.**
Convert numbers, dates, and times into words — in 7+ languages, with style.
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.
ConversionOptions| Flag | Language | Plugin |
|---|---|---|
| 🇬🇧 | English | ✅ EnglishLanguagePlugin |
| 🇮🇷 | Persian | ✅ PersianLanguagePlugin |
| 🇫🇷 | French | ✅ FrenchLanguagePlugin |
| 🇯🇵 | Japanese | ✅ JapaneseLanguagePlugin |
| 🇨🇳 | Chinese | ✅ ChineseLanguagePlugin |
| 🇷🇺 | Russian | ✅ RussianLanguagePlugin |
| 🇩🇪 | German | ✅ GermanLanguagePlugin |
| 🇪🇸 | Spanish | ✅ SpanishLanguagePlugin |
More languages coming soon...
Install Harfizer via npm:
npm install harfizer
Import the plugin and the CoreConverter from the package:
import { CoreConverter, EnglishLanguagePlugin } from 'harfizer';
const englishPlugin = new EnglishLanguagePlugin();
const converter = new CoreConverter(englishPlugin);
convertNumber(input: InputNumber, options?: ConversionOptions): stringConverts 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): stringConverts a number with up to 3 digits.
converter.convertTripleToWords(789);
// Output: "seven hundred eighty-nine"
convertDateToWords(dateStr: string, calendar?: "jalali" | "gregorian"): stringConverts a date string to spoken form.
converter.convertDateToWords("2023/04/05");
// Output: "April 5, two thousand twenty-three"
convertTimeToWords(timeStr: string): stringConverts 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"
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"));
Customize your number output:
const options = {
customZeroWord: "nil",
customNegativeWord: "negative",
customSeparator: " "
};
converter.convertNumber("-123", options);
// Output: "negative one hundred twenty-three"
MIT
Open an issue or PR on GitHub! Contributions welcome 🌟
FAQs
> **Convert numbers, dates, and times into words — in 7+ languages, with style.**
We found that harfizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.