lipilekhika 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,6 +16,7 @@
16
16
  - ðŸ“Ķ **Multiple Module Formats** — Tree-shakable ESM, CommonJS, and UMD builds
17
17
  - ⚡ **Real-time Typing** — Low-latency typing engine for browser environments
18
18
  - 🚀 **WASM Support** - Use Blazing fast Rust ðŸĶ€ in JS environments
19
+ - 🔧 **Native N-API Module** — Near-native Rust performance for Node.js/Bun/Deno
19
20
  - ðŸŽŊ **Highly Customizable** — Fine-tune transliteration with custom options
20
21
  - 🌍 **Universal Runtime** — Works in Node.js, browsers, Deno, Bun, and more
21
22
  - ðŸŠķ **Lightweight** — Only 7 KB gzipped
@@ -132,6 +133,26 @@ Read more about [WASM Module](https://lipilekhika.in/getting-started/wasm/)
132
133
 
133
134
  </details>
134
135
 
136
+ <details>
137
+ <summary><strong><code>transliterate_node(text, from, to, options?)</code></strong> — Native N-API transliteration (Rust)</summary>
138
+
139
+ Available via `lipilekhika/node`. Uses a native Rust N-API binding for near-native performance. Only works in **Node.js, Bun, and Deno** on **Linux/macOS/Windows (x86_64 & aarch64)**.
140
+
141
+ **Parameters:** Same as `transliterate`.
142
+
143
+ **Returns:** `Promise<string>`
144
+
145
+ </details>
146
+
147
+ <details>
148
+ <summary><strong><code>preloadNode()</code></strong> — Preload the native module</summary>
149
+
150
+ Available via `lipilekhika/node`.
151
+
152
+ **Returns:** `Promise<void>`
153
+
154
+ </details>
155
+
135
156
  ### Constants & Types
136
157
 
137
158
  ```typescript