0.0.3 • Published 9 months ago

whichlang-wasm v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Whichlang-wasm

whichlang-wasm is a thin webassembly bindings to whichlang library.

Installation

npm install whichlang-wasm

Usage

This bindings exports a single interface detectLanguage which takes a string and returns a iso 6391 based language code.

const { detectLanguage } = require("whichlang-wasm");

const text = "한글 텍스트";
const language = detectLanguage(text);

console.log(language) // KO
0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago