Skip to content

kwonoj/whichlang-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages