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

tamil-language-tools-and-assets

v2.0.0

Published

Tamil ASCII font to Unicode and reverse regex mappings

Readme

Tamil Language Tools and Assets

Regular expression mappings and helper functions for converting between legacy Tamil ASCII encodings and Unicode Tamil.

This package is published as ESM and currently exposes four main runtime exports:

  • applyMapping: a generic utility for applying any mapping table
  • regExpList: all regex mapping tables
  • availableRegExp: the list of available mapping names
  • regExpHelper: helper functions grouped by font/direction

Install

npm install tamil-language-tools-and-assets

Exports

applyMapping

applyMapping applies a mapping table to a string in sequence.

import { applyMapping, regExpList } from "tamil-language-tools-and-assets";

const converted = applyMapping("fp fh f", regExpList.Bamini);
console.log(converted);

regExpList

regExpList is an object whose keys are mapping names such as Bamini, Anjal, UniBamini, and UniTscii.

import { regExpList } from "tamil-language-tools-and-assets";

const bamini = regExpList.Bamini;
const unicodeToBamini = regExpList.UniBamini;

Forward mappings use names like Bamini or Anjal. Reverse mappings use Uni* names when available.

availableRegExp

availableRegExp contains all supported mapping names.

import { availableRegExp } from "tamil-language-tools-and-assets";

console.log(availableRegExp);

regExpHelper

regExpHelper exposes ready-to-use conversion helpers such as BaminiToUnicode and UnicodeToBamini. These helpers are generated from regExpList, so the mapping tables and helper behavior stay in sync.

import { regExpHelper } from "tamil-language-tools-and-assets";

const converted = regExpHelper.BaminiToUnicode("fp fh f");
console.log(converted);

Usage

Use a mapping table directly

import { applyMapping, regExpList } from "tamil-language-tools-and-assets";

console.log(applyMapping("fp fh f", regExpList.Bamini));

Use a helper function

import { regExpHelper } from "tamil-language-tools-and-assets";

console.log(regExpHelper.BaminiToUnicode("fp fh f"));
console.log(regExpHelper.UnicodeToBamini("தமிழ்"));

Available Mappings

The package includes forward mappings for:

  • Anjal
  • Anjal1
  • Bamini
  • Boomi
  • Dinakaran
  • Dinamani
  • Indoweb
  • Keyman
  • Koeln
  • Libi
  • Murasoli
  • Mylai
  • Nakkeeeran
  • Oldvikatan
  • Roman
  • Senthamizh
  • Tab
  • Tam
  • Thanthy
  • Tscii
  • Webulagam

Reverse mappings are currently available for:

  • UniBamini
  • UniKeyman
  • UniTab
  • UniTscii

Types

The main exported types are:

export type RegExpMapping = [RegExp | string, string][];

export type RegExpListType = {
  [key: string]: [RegExp | string, string][];
};

export type RegExpHelperType = {
  [helperName: string]: (text: string) => string;
};

Development

This repo uses a single TypeScript config and builds ESM output into dist.

The published build includes JavaScript and declaration files, without source maps or declaration maps.

npm run build

Run the API-level test suite with:

bun test

Run the Bun-native TypeScript tests explicitly with:

npm run test:bun

Run the Node-based built-output tests with:

npm test

Or directly:

npm run test:node

Tests also run automatically in GitHub Actions on pushes to main and on pull requests.

Releases

This repo uses Changesets for controlled version PRs.

To add a release note entry for a change:

npm run changeset

When changesets land on main, GitHub Actions opens or updates a Version Packages PR with the version bump. Merging that PR updates version files in git, and publishing can still happen separately through the npm publish workflow.

License

Licensed under the GNU Affero General Public License v3.0. See LICENSE.