A TypeScript source port of Nakatani Shuyo's excellent language detection library in Java.
http://laszlopandy.github.io/ts-language-detection/
# install dependencies
npm install tsc
npm install lazy
# compile TypeScript
tsc --target ES5 --out webinterface.js src/webinterface.ts
# run web server
python -m SimpleHTTPServer 8000 &
# open page
open http://localhost:8000/index.html