{"id":15690085,"url":"https://github.com/silverwind/caa","last_synced_at":"2026-05-07T02:05:10.617Z","repository":{"id":57192368,"uuid":"143346566","full_name":"silverwind/caa","owner":"silverwind","description":"rfc6844-conform CAA record lookup and validation","archived":false,"fork":false,"pushed_at":"2024-05-24T22:46:24.000Z","size":905,"stargazers_count":8,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T03:41:59.591Z","etag":null,"topics":["caa","dns","letsencrypt","module","nodejs","tls"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silverwind.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,"zenodo":null}},"created_at":"2018-08-02T21:27:11.000Z","updated_at":"2024-05-24T22:46:27.000Z","dependencies_parsed_at":"2024-03-26T02:30:30.218Z","dependency_job_id":"0f247aae-bc89-4c8e-a1a9-a32842013d48","html_url":"https://github.com/silverwind/caa","commit_stats":{"total_commits":99,"total_committers":2,"mean_commits":49.5,"dds":"0.010101010101010055","last_synced_commit":"5e8cd02ce3a41175194e486564c330787944599e"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/silverwind/caa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fcaa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fcaa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fcaa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fcaa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverwind","download_url":"https://codeload.github.com/silverwind/caa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fcaa/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264795229,"owners_count":23665223,"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","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":["caa","dns","letsencrypt","module","nodejs","tls"],"created_at":"2024-10-03T18:07:14.236Z","updated_at":"2026-05-07T02:05:05.571Z","avatar_url":"https://github.com/silverwind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# caa\n[![](https://img.shields.io/npm/v/caa.svg?style=flat)](https://www.npmjs.org/package/caa) [![](https://img.shields.io/npm/dm/caa.svg)](https://www.npmjs.org/package/caa) [![](https://packagephobia.com/badge?p=caa)](https://packagephobia.com/result?p=caa)\n\n\u003e [rfc6844](https://tools.ietf.org/html/rfc6844)-conform CAA record lookup and validation\n\n## Usage\n\n```js\nimport {caa, caaMatches} from \"caa\";\n\nawait caa(\"example.com\");\n// =\u003e [{flags: 0, tag: 'issue', value: 'letsencrypt.org', issuerCritical: false}]\n\nawait caaMatches(\"example.com\", \"letsencrypt.org\");\n// =\u003e true\n```\n\n## API\n### `caa(name, [options])`\n\nRetrieve the CAA records which apply to `name`. Returns a [`CAA` object](https://github.com/mafintosh/dns-packet/#caa).\n\n### `caaMatches(name, ca, [options])`\n\nTest if the CAA record for `name` matches for certificate authority `ca`.\n\n#### `options`\n\n- `servers`: The DNS servers to use. Defaults to the system resolvers or `['8.8.8.8', '8.8.4.4']` if none are configured.\n- `port`: The port on the DNS server to use. Default `53`.\n- `recursions`: How many recursions to follow. Default `50`.\n- `retries`: How many retries to attempt. Default `12`.\n- `ignoreTLDs`: Don't query top level domains like `com` in `example.com`. Default: `false`.\n- `dnsSocket`: A [dns-socket instance](https://github.com/mafintosh/dns-socket#var-socket--dnsoptions), useful when doing a large amount of queries to re-use a single socket. Default: `undefined`.\n\n## License\n\n© [silverwind](https://github.com/silverwind), distributed under BSD licence\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fcaa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverwind%2Fcaa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fcaa/lists"}