franc
Franc offers a robust language detection solution supporting up to 419 languages. It includes a CLI for seamless integration and is compatible with Node.js, Deno, and modern browsers. Best suited for larger texts, franc's accuracy may be lower with smaller samples. Packages such as franc-min, franc, and franc-all provide tailored language support options. Leveraging ISO 639-3 codes, franc efficiently identifies text languages, offering flexibility across platforms.