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 🙏

© 2025 – Pkg Stats / Ryan Hefner

amharic-converter

v1.0.8

Published

this is a converter that can help you write in amharic in your application

Downloads

87

Readme

Amharic Converter

npm version license

This is a Typer that helps you write in Amharic in your application. It provides a simple way to convert English letters to Amharic letter using predefined transcription rules.

Installation

You can install the package via npm:

npm install amharic-converter

Usage with Example

To enable the conversion of English text to Amharic in real-time, you need to create a state variable that will hold the Amharic text. Additionally, you should implement an event handler that updates the state variable whenever the input text changes.

Here's an example of how you can accomplish this in JavaScript:

import { convertToAmharic } from "amharic-converter";

// Create a state variable to hold the Amharic text
const [amharicText, setAmharicText] = useState("");

// Define an event handler to update the state when the input changes
const handleInputChange = (event) => {
  const englishText = event.target.value;
  const convertedText = convertToAmharic(englishText);
  setAmharicText(convertedText);
};

In the code snippet above, we import the convertToAmharic function from the amharic-converter package. Then, we create a state variable called amharicText using the useState hook, which initializes it with an empty string.

The handleInputChange function is responsible for updating the state variable whenever the input text changes. It extracts the English text from the event's target value, passes it to the convertToAmharic function to obtain the corresponding Amharic text, and sets the amharicText state with the converted text.

To integrate this functionality into your application, you can use the amharicText state variable to display the converted Amharic text within an input element. Here's an example of how you can achieve this in JSX:

<input type="text" value={amharicText} onChange={handleInputChange} />

In the above code, the value attribute of the input element is bound to the amharicText state variable, ensuring that it reflects the current converted Amharic text. The onChange event is connected to the handleInputChange function, so any changes to the input will trigger the conversion and update the state accordingly.

Usage with Node

Step 1: create node project

npm init

Step 2: add amharic-converter as dependency

npm install amharic-converter

Step 3:

# index.js
const { convertToAmharic } = require("amharic-converter");

const amharicString = "Selam new"
const result = convertToAmharic(amharicString)

console.log(result)

Step 4: run the code in your terminal

node index.js

Expected output

ሠላም ነው

Authors

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.