# 🌐 bhashantarh

A simple, lightweight NPM package to detect and translate text between languages using [LibreTranslate](https://libretranslate.de/).  
Perfect for use in **web apps, browser extensions, Node.js apps, and React projects**.

---

## ✨ Features

- 🌍 Detect the language of any input text
- 🔁 Translate between supported languages
- 🧠 Uses free public translation API (LibreTranslate)
- ⚡ Easy to integrate in any project

---

## 📦 Installation

```bash
npm install bhashantarh
```

---

## 🚀 Usage

```js
const { detectLanguage, translate, getSupportedLanguages } = require("bhashantarh");

(async () => {
  const lang = await detectLanguage("Bonjour");
  console.log("Detected:", lang); // fr

  const output = await translate("Hello", "en", "hi");
  console.log("Translated:", output); // नमस्ते

  console.log(getSupportedLanguages());
})();
```

---

## 🌐 Supported Languages

Includes major global languages like:
- English, Hindi, Urdu, Arabic, Chinese, Russian, Tamil, Telugu, etc.

---

## 📄 License

MIT License
