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

tamazight

v1.0.5

Published

A JavaScript library for transliterating Latin Tamazight into Tifinagh and vice versa.

Readme

Tamazight Transliterator

A JavaScript library that transliterates Latin-script Tamazight into Tifinagh and vice versa. This lightweight utility makes it easy to convert between Latin and Tifinagh scripts for the Tamazight (Berber) language.

Installation

npm install tamazight

Features

  • Transliterate from Latin to Tifinagh script and vise-versa
  • Improves searchability of Amazigh content by enabling Latin-based search
  • Command-line interface (CLI) included
  • Simplifies development of websites with Tifinagh text

Web Development Benefits and Usage

Enhanced Website Accessibility

This library makes developing websites with Tifinagh text significantly easier:

  • Content Management: Store content in Latin script and display in Tifinagh
  • Form Processing: Accept input in either script and normalize for backend processing
  • Responsive Text: Easily switch between scripts based on user preferences

Search Engine Optimization for Amazigh Content

The transliteration capabilities provide significant SEO advantages:

  • Improved Discoverability: Users can search using Latin characters and find Tifinagh content
  • Dual Indexing: Search engines can index content in both scripts when properly implemented
  • Content Accessibility: Makes Amazigh language content accessible to a wider audience
  • Metadata Enhancement: Use both scripts in metadata to improve search engine visibility

Example implementation for SEO benefits:

<!-- HTML example with SEO benefits -->
import React, { useState } from "react";
import { transliterateToTifinagh } from "tamazight";

function TamazightContent() {
  const [latinText] = useState("Tamazight tutlayt n Imazighen");

  // Transliterate the Latin text to Tifinagh
  const tifinaghText = transliterateToTifinagh(latinText);

  return (
    <article>
      {/* Tifinagh content for display */}
      <h1 className="tifinagh">{tifinaghText}</h1>
      
      {/* Hidden Latin text for SEO purposes */}
      <h1 data-latin={latinText} className="hidden-for-visual">
        {latinText}
      </h1>
    </article>
  );
}

export default TamazightContent;

Command Line Interface

The package includes a CLI tool for quick transliteration:

# Install globally (optional)
npm install -g tamazight

# Latin to Tifinagh
tamazight-transliterate "tamghart" --to-tifinagh

# Tifinagh to Latin
tamazight-transliterate "ⵜⴰⵎⵖⴰⵔⵜ" --to-latin

API Reference

transliterateToTifinagh(text)

Converts Latin script Tamazight text to Tifinagh script.

  • Parameters: text (String) - The Latin script text to convert
  • Returns: String - The text converted to Tifinagh script

transliterateToLatin(text)

Converts Tifinagh script text to Latin script Tamazight.

  • Parameters: text (String) - The Tifinagh script text to convert
  • Returns: String - The text converted to Latin script

Development

Prerequisites

  • Node.js (v14 or higher recommended)
  • npm

Setting Up Development Environment

# Clone the repository
git clone https://github.com/Abdessamadae/tamazight.git
cd tamazight

# Install dependencies
npm install

# Run tests
npm test

Running Tests

npm test

Contributing

Contributions are welcome! Here's how you can contribute:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add some amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Ways you can contribute:

  • Improve character mappings: Help expand and improve the transliteration mappings to cover more characters and sequences.
  • Fix bugs: Report and help resolve any bugs or issues you find.
  • Add features: Have ideas for new features? We welcome new functionality that improves the library.

Code Style

  • Follow standard JavaScript conventions
  • Add JSDoc comments for new functions
  • Add tests for new features
  • Update documentation as needed

Acknowledgments

  • Thanks to all contributors who have helped with the development
  • Inspired by the need for better digital tools for Tamazight language

Contact

Abdessamad Ait Elmouden - GitHub Profile

Linkedin Profile