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

common-turkic-script

v0.1.0

Published

Zero-dependency transliterator from Qazaq (kk) and Qırğız (ky) Cyrillic to the official 34-letter Common Turkic Alphabet (Ortaq Türk Älipbesi).

Readme

common-turkic-script

Qazaq (kk) pen Qırğız (ky) kirilın bekitilgen 34 tamgalı Ortaq Türk Jazuwına awdaratın, täweldiliksiz awdarğış.

Zero-dependency transliterator from Qazaq (kk) and Qırğız (ky) Cyrillic to the official 34-letter Common Turkic Alphabet.

npm version npm downloads CI npm bundle size types included zero dependencies npm provenance license MIT

Qazaqşa · English


Qazaqşa

Bul README-diñ qazaqşa böligi tutasımen 34 tamgalı Ortaq Türk Jazuwında jazılğan — demek buwma öziniñ şığısımen jazılğan.

common-turkic-script — Qazaq (kk) pen Qırğız (ky) kiril jazbasın bekitilgen 34 tamgalı Ortaq Türk Jazuwına (Baku 2024 · Astana 2026) awdaratın arıw, täweldiliksiz TypeScript buwması.

Erekşelikter

  • Arıw atqarım, eş täweldilik joq; şolğışta da, Node-ta da jumıs isteydi.
  • TypeScript türleri qosılğan (.d.ts), ESM + CJS qoldaw.
  • Bas/kişi tamga saqtaladı (ҰŪ, ЯYa/YA).
  • Idempotent: bir kez awdarılğan ortaq jazuw jazbası qaytadan awdarılğanda özgermeydi.
  • Tree-shakeable, minzip ölşemi öte kişi.
  • CLI qosılğan: buyrıq jolında tikeley qoldanu.

Ornatuv

npm install common-turkic-script

Jıldam bastaw

import { transliterate, createTransliterator } from "common-turkic-script";

transliterate("Қазақстан", "kk"); // "Qazaqstan"
transliterate("Жалпы", "ky");      // "Calpı"

// Bir tilge baylanğan qaytımdı atqarım:
const toLatin = createTransliterator("kk");
toLatin("Абай Құнанбайұлы"); // "Abay Qūnanbayūlı"

API

| Atqarım | Tüsindirme | | --- | --- | | transliterate(text, lang) | Jazbanı awdaradı. lang: "kk", "ky" nemese { lang }. | | transliterateLines(lines, lang) | Joldar tizbesin tolığımen awdaradı. | | createTransliterator(lang) | Bir tilge baylanğan (text) => string atqarımın qaytaradı. | | getSupportedLangs() | Qoldaw körsetilgen til belgilerin qaytaradı. | | langProfiles | Barlıq tildiñ derekteri men sızbası. | | COMMON_TURKIC_34 | 34 tamgadan turatın tizbe. |

Bekitilgen sızba eskertpeleri

| Kiril | kk | ky | Eskertpe | | --- | --- | --- | --- | | ұ | ū | — | üst sızıq; уu-dan bölek (eñ mañızdı ayırma) | | ы | ı | ı | üsti belgisiz I | | і / и | i | i | üsti belgili İ | | й | y | y | | | ж | j | c | Qazaq [ʒ]→j, Qırğız [d͡ʒ]→c | | ч | ç | ç | | | х | x | x | | | ң | ñ | ñ | |


English

common-turkic-script is a pure, zero-dependency TypeScript package that transliterates Qazaq (kk) and Qırğız (ky) Cyrillic text into the official 34-letter Common Turkic Alphabet (Ortaq Türk Jazuwı; Baku 2024 · Astana 2026 Declaration).

Features

  • Pure function, no dependencies; runs in the browser and in Node.
  • TypeScript types included (.d.ts), ESM + CJS support.
  • Case-preserving (ҰŪ, ЯYa/YA).
  • Idempotent: text already in the common alphabet is left unchanged.
  • Tree-shakeable, tiny minzipped footprint.
  • CLI included for direct terminal use.

Install

npm install common-turkic-script

Quick start

import { transliterate, createTransliterator } from "common-turkic-script";

transliterate("Қазақстан", "kk"); // "Qazaqstan"
transliterate("Жалпы", "ky");      // "Calpı"

// A reusable function bound to one language:
const toLatin = createTransliterator("kk");
toLatin("Абай Құнанбайұлы"); // "Abay Qūnanbayūlı"

CommonJS

const { transliterate } = require("common-turkic-script");
transliterate("Қазақ", "kk"); // "Qazaq"

Browser (via CDN)

<script type="module">
  import { transliterate } from "https://cdn.jsdelivr.net/npm/common-turkic-script/+esm";
  console.log(transliterate("Қазақстан", "kk")); // "Qazaqstan"
</script>

API

| Function | Description | | --- | --- | | transliterate(text, lang) | Transliterate text. lang: "kk", "ky", or { lang }. | | transliterateLines(lines, lang) | Transliterate an array of lines in bulk. | | createTransliterator(lang) | Returns a reusable (text) => string bound to one language. | | getSupportedLangs() | Returns the supported language codes. | | langProfiles | Per-language metadata and mapping table. | | COMMON_TURKIC_34 | The 34-letter alphabet as an array. |

import type {
  SourceLang,
  TranslitOptions,
  CharMap,
  LangProfile,
} from "common-turkic-script";

CLI

# Inline text
npx common-turkic-script --lang kk "Қазақстан"   # Qazaqstan

# From stdin
echo "Жалпы" | npx common-turkic-script -l ky      # Calpı

# From a file
npx common-turkic-script --lang kk input.txt > output.txt

| Flag | Description | | --- | --- | | -l, --lang <kk\|ky> | Source Cyrillic language (required). | | -h, --help | Show help. | | -v, --version | Show version. |

Official table notes

| Cyrillic | kk | ky | Note | | --- | --- | --- | --- | | ұ | ū | — | macron; distinct from уu (the most critical distinction) | | ы | ı | ı | dotless I | | і / и | i | i | dotted İ | | й | y | y | | | ж | j | c | Qazaq [ʒ]→j, Qırğız [d͡ʒ]→c | | ч | ç | ç | | | х | x | x | | | ң | ñ | ñ | |

Source & standard

34-letter Common Turkic Alphabet (Baku 2024 · Astana 2026 Declaration). Letters: A Ä B C Ç D E F G Ğ H I İ J K L M N Ñ O Ö P Q R S Ş T U Ū Ü V X Y Z.

Contributing

Contributions are welcome. Please run npm run lint, npm run build, and npm test before opening a pull request. See CHANGELOG.md.

License

MIT