Virastar is a TypeScript library for Persian text processing, providing various functions such as normalization, cleaning, and formatting for better readability and compatibility.
Warning Please note that Virastar is an experimental project and is currently under development. As such, it may not be suitable for use in production environments. Use at your own risk and discretion.
This project was inspired by the popular virastar npm package created by Brothers in Code. While virastar has been a valuable tool for Persian text processing, this project seeks to build upon its foundation and provide additional functionality and improvements. As such, this library may have a similar API to virastar, but it is not a drop-in replacement and may have different behavior in some cases.
To install Virastar, run the following command:
pnpm add @nekofar/virastar
To use Virastar, call the process
function on a virastar
instance and pass in the data you wish to process. Here's an example:
import virastar from '@nekofar/virastar'
const processedText = virastar().process(text)