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

mn-translit

v1.0.3

Published

Mongolian Latin ↔ Cyrillic transcription following MNS 5217:2012 standard with number-to-text conversion

Readme

mn-translit

Mongolian Latin ↔ Cyrillic transcription (MNS 5217:2012) with number-to-text conversion.

Install

npm install mn-translit

Node.js Compatibility

Minimum Requirements: Node.js ≥14.0.0, npm ≥6.0.0

Tested & Supported Versions:

  • ✅ Node.js 14.x (LTS Fermium) - Minimum supported
  • ✅ Node.js 16.x (LTS Gallium)
  • ✅ Node.js 18.x (LTS Hydrogen)
  • ✅ Node.js 20.x (LTS Iron)
  • ✅ Node.js 22.x (Current)

Platform Support:

  • ✅ Ubuntu / Linux
  • ✅ Windows
  • ✅ macOS (Intel & Apple Silicon)

All versions are automatically tested in CI across all platforms. The package uses ES2015 (ES6) as the compilation target for maximum compatibility with older Node.js versions while maintaining modern JavaScript features.

Usage

const { latinToCyrillic, cyrillicToLatin, numberToMongolian } = require('mn-translit');

latinToCyrillic('sain baina uu');  // сайн байна уу
cyrillicToLatin('монгол');         // mongol
numberToMongolian(1000);           // мянга

// Optional: preserve capitalization
latinToCyrillic('Sain baina uu', { preserveCase: true }); // Сайн байна уу

TypeScript:

import { latinToCyrillic, cyrillicToLatin, numberToMongolian, TransliterationOptions } from 'mn-translit';

const opts: TransliterationOptions = { preserveCase: true };
latinToCyrillic('Mongol', opts); // Монгол

ES Modules:

import { latinToCyrillic, cyrillicToLatin, numberToMongolian } from 'mn-translit';

Examples

// Special vowel cases
latinToCyrillic('ai');  // ай
latinToCyrillic('ei');  // эй

// Numbers
numberToMongolian(21);   // хорин нэг
numberToMongolian(111);  // зуун арван нэг
numberToMongolian(1000000);  // сая

Runtime Compatibility Utilities

The package includes utilities to check Node.js version compatibility at runtime:

const { validateEnvironment, getNodeVersion, checkMinimumNodeVersion } = require('mn-translit');

// Check if running in a supported environment
const { supported, warnings } = validateEnvironment();
if (!supported) {
  console.warn('Unsupported Node.js version:', warnings);
}

// Get current Node.js version
const version = getNodeVersion();
console.log(`Running on Node.js ${version.major}.${version.minor}.${version.patch}`);

// Check for specific version requirements
if (checkMinimumNodeVersion(16)) {
  // Use Node 16+ features
}

API Reference

Transliteration Functions

  • latinToCyrillic(text: string, options?: { preserveCase?: boolean }): string - Convert Latin text to Cyrillic
  • cyrillicToLatin(text: string, options?: { preserveCase?: boolean }): string - Convert Cyrillic text to Latin

Number Conversion

  • numberToMongolian(num: number): string - Convert number to Mongolian text

Character Maps

  • latinToCyrillicMap - Mapping of Latin to Cyrillic characters
  • cyrillicToLatinMap - Mapping of Cyrillic to Latin characters

Runtime Compatibility

  • getNodeVersion() - Get current Node.js version
  • checkMinimumNodeVersion(major, minor?) - Check if Node version meets requirements
  • validateEnvironment() - Validate runtime environment
  • replaceAll(str, search, replace) - Polyfill for String.replaceAll (Node 15+)
  • hasOwn(obj, prop) - Polyfill for Object.hasOwn (Node 16.9+)

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Clean build artifacts
npm run clean

Contributing

Contributions are welcome! Please ensure:

  1. Code works on Node.js 14+
  2. Tests pass on all supported versions
  3. TypeScript compiles without errors
  4. Follow existing code style

License

MIT