{"id":16463322,"url":"https://github.com/dptole/al-api","last_synced_at":"2026-06-09T04:33:15.692Z","repository":{"id":57109564,"uuid":"111878598","full_name":"dptole/al-api","owner":"dptole","description":"Accept-Language extra info API","archived":false,"fork":false,"pushed_at":"2017-12-25T05:21:42.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T14:57:27.766Z","etag":null,"topics":["api","country","http","iana-subtag-registry","language","region"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dptole.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}},"created_at":"2017-11-24T05:14:30.000Z","updated_at":"2019-04-27T22:14:40.000Z","dependencies_parsed_at":"2022-08-20T17:41:01.180Z","dependency_job_id":null,"html_url":"https://github.com/dptole/al-api","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dptole/al-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dptole","download_url":"https://codeload.github.com/dptole/al-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api/sbom","scorecard":{"id":354653,"data":{"date":"2025-08-11","repo":{"name":"github.com/dptole/al-api","commit":"45df4a2e9f4e62a2c50846c6180033aa61cc6076"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T09:14:00.067Z","repository_id":57109564,"created_at":"2025-08-18T09:14:00.067Z","updated_at":"2025-08-18T09:14:00.067Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["api","country","http","iana-subtag-registry","language","region"],"created_at":"2024-10-11T11:14:06.421Z","updated_at":"2026-06-09T04:33:15.677Z","avatar_url":"https://github.com/dptole.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Accept-Language extra info API\n==============================\n\n  [![Build status][circle-ci-badge]][circle-ci]\n  [![Issue status][gh-issues-badge]][gh-issues]\n  [![NPM Version][npm-module-version-badge]][npm-module]\n  [![Downloads][npm-downloads-total-badge]][npm-module]\n  [![Say thanks][saythanks-badge]][saythanks-to]\n\nAPI for reading extra information from the HTTP header [Accept-Language][url-moz-accept-language] based on the [Language subtag registry][url-language-subtag-registry] file.\n\nDetails for the [Accept-Language][url-moz-accept-language] HTTP header can be found at the [Tags for Identifying Languages][url-rfc5646-3.1], which refers to the [Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content][url-rfc7231-3.1.3.1].\n\nExamples\n========\n\n```javascript\nconst al_api = require('@dptole/al-api')\n\nal_api.getLanguageDescriptionBySubtag('en') // ['English']\nal_api.getRegionDescriptionBySubtag('US') // ['United States']\n\nal_api.getAcceptLanguageInfo('pt,pt-BR;q=0.9,es-VE;q=0.8')\n/*\n  [{\n    'language': {\n      'subtag': 'pt',\n      'info': ['Portuguese']\n    }\n  }, {\n    'language': {\n      'subtag': 'pt',\n      'info': ['Portuguese']\n    },\n    'region': {\n      'subtag': 'BR',\n      'info': ['Brazil']\n    }\n  }, {\n    'language': {\n      'subtag': 'es',\n      'info': ['Castilian']\n    },\n    'region': {\n      'subtag': 'VE',\n      'info': ['Venezuela']\n    }\n  }]\n*/\n```\n\nLicense\n=======\n\n[MIT][LICENSE]\n\n[circle-ci]: https://circleci.com/gh/dptole/al-api\n[circle-ci-badge]: https://img.shields.io/circleci/project/dptole/al-api.svg\n[gh-issues-badge]: https://img.shields.io/github/issues-raw/dptole/al-api.svg\n[gh-issues]: https://github.com/dptole/al-api/issues\n[npm-module-version-badge]: https://img.shields.io/npm/v/@dptole/al-api.svg\n[npm-module]: https://www.npmjs.org/package/@dptole/al-api\n[npm-downloads-total-badge]: https://img.shields.io/npm/dt/@dptole/al-api.svg\n[saythanks-badge]: https://img.shields.io/badge/say%20thanks-%E3%83%84-44cc11.svg\n[saythanks-to]: https://saythanks.io/to/dptole\n[url-moz-accept-language]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language\n[url-rfc7231-5.3.5]: https://tools.ietf.org/html/rfc7231#section-5.3.5\n[url-rfc7231-3.1.3.1]: https://tools.ietf.org/html/rfc7231#section-3.1.3.1\n[url-rfc5646-3.1]: https://tools.ietf.org/html/rfc5646#section-3.1\n[url-language-subtag-registry]: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry\n[LICENSE]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdptole%2Fal-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdptole%2Fal-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdptole%2Fal-api/lists"}