{"id":18074271,"url":"https://github.com/cijiugechu/whatlang-node","last_synced_at":"2026-04-19T15:02:05.350Z","repository":{"id":143120638,"uuid":"614807050","full_name":"cijiugechu/whatlang-node","owner":"cijiugechu","description":"Fastest language detector in Node.js","archived":false,"fork":false,"pushed_at":"2023-03-16T13:11:49.000Z","size":875,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T11:28:38.609Z","etag":null,"topics":["detector","fast","language","napi-rs","nodejs","whatlang"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cijiugechu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-16T11:09:18.000Z","updated_at":"2024-09-09T10:16:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e3c5361-f7cb-4b1d-9ef6-8e2d2fc76be0","html_url":"https://github.com/cijiugechu/whatlang-node","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"napi-rs/package-template","purl":"pkg:github/cijiugechu/whatlang-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fwhatlang-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fwhatlang-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fwhatlang-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fwhatlang-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cijiugechu","download_url":"https://codeload.github.com/cijiugechu/whatlang-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cijiugechu%2Fwhatlang-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268031184,"owners_count":24184458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["detector","fast","language","napi-rs","nodejs","whatlang"],"created_at":"2024-10-31T10:11:57.984Z","updated_at":"2026-04-19T15:02:00.249Z","avatar_url":"https://github.com/cijiugechu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `whatlang-node`\n\n![https://github.com/cijiugechu/whatlang-node/actions](https://github.com/cijiugechu/whatlang-node/workflows/CI/badge.svg)\n\nFastest language detector in Node.js\n\n## API\n\n```typescript\nexport function detectLang(input: string, iso6393?: boolean | undefined | null): string\nexport function detectScript(input: string): string\n```\n\n## Usage\n\n```js\nimport { detectLang, detectScript } from 'whatlang-node'\n\nconsole.log(detectLang('This is a test.')) // 'English'\n\n// Convert into ISO 639-3.\nconsole.log(detectLang('这是测试', true)) // 'cmn'\n\nconsole.log(detectScript('This is a test')) // 'Latin'\n```\n\n## Support matrix\n\n### Operating Systems\n\n|                  | node14 | node16 | node18 |\n| ---------------- | ------ | ------ | ------ |\n| Windows x64      | ✓      | ✓      | ✓      |\n| Windows x32      | ✓      | ✓      | ✓      |\n| Windows arm64    | ✓      | ✓      | ✓      |\n| macOS x64        | ✓      | ✓      | ✓      |\n| macOS arm64      | ✓      | ✓      | ✓      |\n| Linux x64 gnu    | ✓      | ✓      | ✓      |\n| Linux x64 musl   | ✓      | ✓      | ✓      |\n| Linux arm gnu    | ✓      | ✓      | ✓      |\n| Linux arm64 gnu  | ✓      | ✓      | ✓      |\n| Linux arm64 musl | ✓      | ✓      | ✓      |\n| Android arm64    | ✓      | ✓      | ✓      |\n| Android armv7    | ✓      | ✓      | ✓      |\n| FreeBSD x64      | ✓      | ✓      | ✓      |\n\n\n## Bench\n\n```bash\nArchitecture:            x86_64\n  CPU op-mode(s):        32-bit, 64-bit\n  Address sizes:         48 bits physical, 48 bits virtual\n  Byte Order:            Little Endian\nCPU(s):                  16\nVendor ID:               AuthenticAMD\n  Model name:            AMD Ryzen 7 5800H with Radeon Graphics\n    CPU family:          25\n    Model:               80\n    Thread(s) per core:  2\n    Core(s) per socket:  8\n    Socket(s):           1\n    Stepping:            0\n    BogoMIPS:            6387.75\nCaches (sum of all):\n  L1d:                   256 KiB (8 instances)\n  L1i:                   256 KiB (8 instances)\n  L2:                    4 MiB (8 instances)\n  L3:                    16 MiB (1 instance)\n```\n\n```bash\nlanguagedetect:\n  6 800 ops/s, ±0.53%    | slowest, 63.79% slower\nwhatlang-node:\n  18 778 ops/s, ±0.32%   | fastest\n\nFastest: whatlang-node\nSlowest: languagedetect\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcijiugechu%2Fwhatlang-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcijiugechu%2Fwhatlang-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcijiugechu%2Fwhatlang-node/lists"}