{"id":17446260,"url":"https://github.com/srn/semver-node","last_synced_at":"2026-03-19T06:13:51.163Z","repository":{"id":57371987,"uuid":"44227340","full_name":"srn/semver-node","owner":"srn","description":"node semver range resolution","archived":false,"fork":false,"pushed_at":"2015-12-05T09:28:49.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T12:43:16.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/srn.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":"2015-10-14T06:04:17.000Z","updated_at":"2023-03-10T10:38:11.000Z","dependencies_parsed_at":"2022-08-30T16:10:18.709Z","dependency_job_id":null,"html_url":"https://github.com/srn/semver-node","commit_stats":null,"previous_names":["srn/sermver-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/srn/semver-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srn%2Fsemver-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srn%2Fsemver-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srn%2Fsemver-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srn%2Fsemver-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srn","download_url":"https://codeload.github.com/srn/semver-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srn%2Fsemver-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29508741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":[],"created_at":"2024-10-17T18:33:56.265Z","updated_at":"2026-02-16T13:05:40.941Z","avatar_url":"https://github.com/srn.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# semver-node [![Build Status](https://travis-ci.org/srn/semver-node.svg?branch=master)](https://travis-ci.org/srn/semver-node)\n\n\u003e node semver range resolution. Uses [nodejs.org/dist](https://nodejs.org/dist/) as source.\n\n## Install\n\n```sh\n$ npm i -S semver-node\n```\n\n## Usage\n\n```js\nimport semverNode, { resolve } from 'semver-node';\n\nasync function stable() {\n  let { stable } = await semverNode();\n  // =\u003e 5.1.1\n}\n\nasync function resolve() {\n  let versions = await semverNode();\n\n  resolve(versions, '\u003e=0.8.5 \u003c=0.8.14')\n  // =\u003e 0.8.14\n}\n```\n\nSee the [tests](test.js) for more examples.\n\n### API\n\n`semverNode` exports a Promise by default and a `resolve` convenience helper method.\n\n#### semverNode(mirror)\n\n##### mirror\n\nType: `string`\n\nThe URL to request. Defaults to `https://nodejs.org/dist/`.\n\n##### resolve(versions, range)\n\nResolves the specified `range`. i.e. `.resolve(versions, '\u003e=0.8.5 \u003c=0.8.14')`.\n\n## Related\n\n- [semver-node-cli](https://github.com/srn/semver-node-cli)\n\n## License\n\nMIT © [Søren Brokær](http://srn.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrn%2Fsemver-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrn%2Fsemver-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrn%2Fsemver-node/lists"}