{"id":15372965,"url":"https://github.com/rs/node-dnsstamp","last_synced_at":"2025-04-15T12:31:46.827Z","repository":{"id":46770972,"uuid":"186511790","full_name":"rs/node-dnsstamp","owner":"rs","description":"DNS Stamp encoding/decoding library for node","archived":false,"fork":false,"pushed_at":"2022-05-22T17:15:47.000Z","size":53,"stargazers_count":15,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T21:12:14.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rs.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":"2019-05-13T23:54:05.000Z","updated_at":"2022-06-07T14:06:00.000Z","dependencies_parsed_at":"2022-09-26T18:12:00.634Z","dependency_job_id":null,"html_url":"https://github.com/rs/node-dnsstamp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fnode-dnsstamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fnode-dnsstamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fnode-dnsstamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rs%2Fnode-dnsstamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rs","download_url":"https://codeload.github.com/rs/node-dnsstamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991538,"owners_count":21194894,"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":[],"created_at":"2024-10-01T13:53:50.715Z","updated_at":"2025-04-15T12:31:46.552Z","avatar_url":"https://github.com/rs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNS Stamp\n\nThis node module provides a simple API to parse and generate [DNS Stamp](https://dnscrypt.info/stamps-specifications/) as defined by [Frank Denis](https://twitter.com/jedisct1).\n\n## Installation\n\n    npm install dnsstamp\n\n## Usage\n\nParse a stamp URL:\n\n```js\nconst DNSStamp = require('dnsstamp');\n\nlet stamp = DNSStamp.parse(sdns);\n```\n\nCreate a stamp URL:\n\n```js\nconst DNSStamp = require('dnsstamp');\n\nlet stamp = new DNSStamp.DNSCrypt(addr, {\n    pk: pk,\n    providerName: providerName,\n});\nlet sdns = stamp.toString();\n```\n\nSupported stamps:\n\n* `DNSStamp.DNSCrypt`: constructor(`addr`, {`props`, `pk`, `providerName`})\n* `DNSStamp.DOH`: constructor(`addr`, {`props`, `hostName`, `hash`, `path`})\n* `DNSStamp.DOT`: constructor(`addr`, {`props`, `hostName`, `hash`})\n* `DNSStamp.Plain`: constructor(`addr`, {`props`})\n\n## Licenses\n\nAll source code is licensed under the [MIT License](https://raw.github.com/rs/node-dnsstamp/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frs%2Fnode-dnsstamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frs%2Fnode-dnsstamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frs%2Fnode-dnsstamp/lists"}