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

armenian-transliteration

v2.0.0

Published

Multi-standard Armenian transliteration (BGN/PCGN, ISO 9985, Hübschmann-Meillet, ALA-LC, Russian geographic, Russian personal, IPA)

Downloads

574

Readme

Armenian Transliteration

Multi-standard Armenian transliteration library with IPA phonemic transcription. Supports 8 transliteration standards with full type safety and 1325 tests.

Installation

npm install armenian-transliteration

Usage

import { transliterate, createTransliterator } from "armenian-transliteration";

// Default: BGN/PCGN romanization
transliterate("Երևան");              // "Yerevan"
transliterate("Հայաստան");           // "Hayastan"

// ISO 9985 (reversible, with diacritics)
transliterate("Երևան", { standard: "iso-9985" });  // "Erewan"

// Hübschmann-Meillet (academic)
transliterate("Երևան", { standard: "hubschmann-meillet" });

// ALA-LC (Library of Congress)
transliterate("Երևան", { standard: "ala-lc" });

// Russian geographic names (Кузьмина–Туманян 1974)
transliterate("Երևան", { standard: "ru-geographic" });  // "Ереван"

// Russian personal names (Вартапетян)
transliterate("Հակոբ", { standard: "ru-personal" });    // "Акоб"

// IPA phonemic transcription (Western Armenian)
transliterate("Հայաստան", { standard: "ipa-western" });  // "Hajasdan"

// IPA phonemic transcription (Eastern Armenian)
transliterate("Հայաստան", { standard: "ipa-eastern" });  // "Hajastan"

// Factory for repeated use
const toRussian = createTransliterator({ standard: "ru-geographic" });
toRussian("Հայաստան");  // "Хаястан"
toRussian("Երևան");     // "Ереван"

Supported Standards

| Standard | ID | Target | Reversible | Description | | ------------------ | -------------------- | -------- | ---------- | ----------------------------------------- | | BGN/PCGN | bgn-pcgn | Latin | No | US/UK geographic names (default) | | ISO 9985 | iso-9985 | Latin | Yes | International standard with diacritics | | Hübschmann-Meillet | hubschmann-meillet | Latin | Yes | Classical academic system | | ALA-LC | ala-lc | Latin | No | Library of Congress | | Russian Geographic | ru-geographic | Cyrillic | No | Geographic names (Кузьмина–Туманян 1974) | | Russian Personal | ru-personal | Cyrillic | No | Personal names (Вартапетян) | | IPA Western | ipa-western | IPA | No | Phonemic transcription (Western Armenian) | | IPA Eastern | ipa-eastern | IPA | No | Phonemic transcription (Eastern Armenian) |

API

transliterate(text, options?)

Transliterate Armenian text.

  • text: string — input text (Armenian characters are transliterated, everything else passes through)
  • options.standard — transliteration standard (default: "bgn-pcgn")
  • options.direction"from-armenian" (default) or "to-armenian" (not yet implemented)

createTransliterator(options)

Create a reusable transliterator function with fixed options. More efficient for repeated use.

listStandards()

Returns an array of all supported standard IDs.

Features

  • 8 transliteration standards — BGN/PCGN, ISO 9985, Hübschmann-Meillet, ALA-LC, Russian geographic, Russian personal, IPA (Western & Eastern Armenian)
  • Declarative standard definitions — each standard is a data object, not imperative code
  • Proper tokenizer — no temporary Unicode symbol hacks
  • Case preservation — uppercase, lowercase, and title case handled correctly
  • Full Unicode support — Armenian ligatures (U+FB13-FB17), punctuation, mixed scripts
  • Type-safe — strict TypeScript, zero any types, zero type assertions
  • 1325 tests — unit, per-standard, integration, edge cases, and formal model verification
  • Tree-shakeable — ESM, CJS, and IIFE builds (16KB minified)