Skip to main content

Installation

Install the package via your preferred package manager:
Note: The official npm package name is @siyabasa/singlish.

Basic Usage

Simple Text Conversion

For simple, stateless conversion of a string (e.g., processing a document or a chat message):

Real-time Input (React)

For interactive text input, use the useSinglishConverter hook. It handles cursor position, buffer management, and state updates automatically.

Next Steps