whichlang-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    4
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i whichlang-wasm

Weekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

840 kB

Total Files

16

Last publish

Collaborators

  • kwonoj