lipilekhika 1.0.9 â 1.0.11
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 +21 -0
- package/dist/cjs/bind-XEBlI3SO.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/node.cjs +1 -1
- package/dist/cjs/script_normalization-tw9TvNns.cjs +2 -0
- package/dist/cjs/typing.cjs +1 -1
- package/dist/esm/bind-CY7WwBq3.js +143 -0
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/node.mjs +2 -2
- package/dist/esm/{script_normalization-CUxPYsB2.js â script_normalization-Ckx-V9lP.js} +82 -83
- package/dist/esm/typing.mjs +163 -127
- package/dist/index.d.ts +1 -0
- package/dist/lipilekhika.umd.js +2 -2
- package/dist/native/index.darwin-arm64.node +0 -0
- package/dist/native/index.darwin-x64.node +0 -0
- package/dist/native/index.linux-arm64-gnu.node +0 -0
- package/dist/native/index.linux-x64-gnu.node +0 -0
- package/dist/native/index.win32-arm64-msvc.node +0 -0
- package/dist/native/index.win32-x64-msvc.node +0 -0
- package/dist/node.d.ts +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/typing.d.ts +4 -3
- package/package.json +18 -13
- package/dist/cjs/bind-CJXcAJyO.cjs +0 -1
- package/dist/cjs/script_normalization-DTByLEqI.cjs +0 -2
- package/dist/esm/bind-CRpHSCaH.js +0 -143
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
|