{"id":41942527,"url":"https://github.com/domeneshop/domeneshop.js","last_synced_at":"2026-01-25T18:40:13.383Z","repository":{"id":34646865,"uuid":"181887811","full_name":"domeneshop/domeneshop.js","owner":"domeneshop","description":"Javascript library for the Domeneshop API","archived":false,"fork":false,"pushed_at":"2025-03-08T01:36:45.000Z","size":222,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-05T22:42:23.537Z","etag":null,"topics":["api-client","domain-name-system","javascript","node-module"],"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/domeneshop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-04-17T12:34:14.000Z","updated_at":"2025-05-24T11:30:42.000Z","dependencies_parsed_at":"2024-05-02T10:50:17.973Z","dependency_job_id":"9c515b39-f13d-4974-99bb-ce028acb8ad0","html_url":"https://github.com/domeneshop/domeneshop.js","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.26086956521739135","last_synced_commit":"c9b2a3a280fef8f0c0f134c6ddd6eba418154572"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/domeneshop/domeneshop.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domeneshop%2Fdomeneshop.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domeneshop%2Fdomeneshop.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domeneshop%2Fdomeneshop.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domeneshop%2Fdomeneshop.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domeneshop","download_url":"https://codeload.github.com/domeneshop/domeneshop.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domeneshop%2Fdomeneshop.js/sbom","scorecard":{"id":350457,"data":{"date":"2025-08-11","repo":{"name":"github.com/domeneshop/domeneshop.js","commit":"d9e1bcf369aa60e42097c003170b681ce2742eae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/4 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":"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":"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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5"],"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-18T08:11:10.140Z","repository_id":34646865,"created_at":"2025-08-18T08:11:10.140Z","updated_at":"2025-08-18T08:11:10.140Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28756442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-client","domain-name-system","javascript","node-module"],"created_at":"2026-01-25T18:40:12.779Z","updated_at":"2026-01-25T18:40:13.377Z","avatar_url":"https://github.com/domeneshop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# domeneshop.js\n\nJavascript library for the Domeneshop API.\n\n## Installation\n\n```\nnpm install domeneshop.js\n```\n\n## Credentials\n\nUse of this module requires Domeneshop API credentials.\n\nYou need an API token and secret. See the [Domeneshop API](https://api.domeneshop.no/docs/) documentation for more information.\n\n**CAUTION:** You should protect these API credentials as you would the password to your Domeneshop user account. Users who can read this information can use these credentials to issue arbitrary API calls on your behalf. \n\n## Usage example \n\n```javascript\nconst Domeneshop = require('domeneshop.js');\n\nconst api = new Domeneshop(\"\u003capi token\u003e\",\"\u003capi secret\u003e\");\n\napi.getDomains().then((domains) =\u003e {\n    for(let domain of domains) {\n        api.dns.getRecords(domain.id).then((record) =\u003e {\n            console.log(domain.domain);\n            console.log(record);\n        });\n    }\n}).catch((err)=\u003e{\n    console.error(err);\n});\n```\n\n## domeneshop.js API\n\n### `new Domeneshop(token, secret)`\n\nCreates a new Domeneshop API instance.\n\n### `Domeneshop.getDomain(domainId)`\n\nGet information about one of your domains.\n\n#### Returns:\n```json\n{\n    \"domain\": \"example.com\",\n    \"expiry_date\": \"2120-01-01\",\n    \"id\": 1234567890,\n    \"nameservers\": [ \n        \"ns1.hyp.net\", \n        \"ns2.hyp.net\", \n        \"ns3.hyp.net\" \n    ],\n    \"registered_date\": \"1990-01-01\",\n    \"registrant\": \"ICANN\",\n    \"renew\": true,\n    \"services\":\n    { \n        \"dns\": true, \n        \"email\": false, \n        \"registrar\": true, \n        \"webhotel\": \"none\"\n    },\n    \"status\": \"active\"\n}\n```\n\n### `Domeneshop.getDomains()`\n\nList all domains on your account.\n\nReturns a list of objects in the same shape as `getDomain(domainId)`.\n\n### `Domeneshop.dns`\n\nThis namespace contains all methods to manipulate DNS records for domains.\n\n### `Domeneshop.dns.getRecord(domainId, recordId)`\n\nGet a specific DNS record for a domain.\n\n**Note:**: The host field does not include the domain name. An A record for `www.example.com` should only have `www` in its host field.\n\n#### Returns:\n```json\n{\n    \"data\": \"127.0.0.1\",\n    \"host\": \"www\",\n    \"id\": 1591030,\n    \"ttl\": 3600,\n    \"type\": \"A\"\n}\n```\n\n### `Domeneshop.dns.getRecords(domainId)`\n\nList all DNS records for a domain.\n\n### `Domeneshop.dns.createRecord(domainId, record)`\n\nCreates a new DNS record for a domain. The record format is JSON with required parameters like the one returned from **getRecord**.\n\nFor full definition see the TypeScript interfaces defined in [src/lib/interfaces/dnsrecord.ts](src/lib/interfaces/dnsrecord.ts)\n\n### `Domeneshop.dns.modifyRecord(domainId, recordId, record)`\n\nModifies a specific DNS record for a domain.\n\n**Note:** You can't modify the host nor the type field. If you want to modify these fields, delete the existing DNS record and recreate it.\n\n### `Domeneshop.dns.deleteRecord(domainId, recordId)`\n\nDeletes a specific DNS record for a domain.\n\n\n### `Domeneshop.forwards`\n\nThis namespace contains all methods to manipulate http 301 forwarding for host names on domains.\n\n### `Domeneshop.forwards.getForward(domainId, host)`\n\nGet a specific forwarding for a host name.\n\n**Note:**: The host field does not include the domain name. A forwarding for `www.example.com` should only have `www` in its host field.\n\n#### Returns:\n```json\n{\n    \"host\": \"www\",\n    \"frame\": false,\n    \"url\": \"http://example.com/\"\n}\n```\n\n### `Domeneshop.forwards.getForwards(domainId)`\n\nList all forwardings for a domain.\n\n### `Domeneshop.forwards.createForward(domainId, forward)`\n\nCreates a new forwarding for a host name on a domain. The record format is JSON with required parameters like the one returned from **getForward**.\n\n### `Domeneshop.forwards.modifyForward(domainId, host, forward)`\n\nModifies a specific forwardings for a host name on a domain.\n\n**Note:** You can't modify the host field. If you want to modify this field, delete the existing forwarding and recreate it.\n\n### `Domeneshop.forwards.deleteForward(domainId, host)`\n\nDeletes a specific forwarding for a host name on a domain.\n\n\n### `Domeneshop.invoices`\n\nThis namespace contains all methods to read invoice information on an account.\n\n### `Domeneshop.invoices.getInvoice(invoiceID)`\n\nGet one invoice.\n\n#### Returns:\n```json\n{\n    \"amount\": 120,\n    \"currency\": \"NOK\",\n    \"due_date\": \"2097-11-14\",\n    \"id\": 1,\n    \"issued_date\": \"2097-10-30\",\n    \"paid_date\": \"2098-11-10\",\n    \"status\": \"paid\",\n    \"type\": \"invoice\",\n    \"url\": \"https://domene.shop/invoice?nr=1\"\n}\n```\n\n### `Domeneshop.invoices.getInvoices(status)`\n\nList all invoices for an account. Might be filtered by `status`.\n\n`status` is optional, and might be one of \"paid\", \"unpaid\" or \"settled\". \"settled\" means the invoice is settled by a credit note.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomeneshop%2Fdomeneshop.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomeneshop%2Fdomeneshop.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomeneshop%2Fdomeneshop.js/lists"}