{"id":18447769,"url":"https://github.com/stoplightio/json-ref-readers","last_synced_at":"2025-04-08T00:32:25.253Z","repository":{"id":40715402,"uuid":"213873283","full_name":"stoplightio/json-ref-readers","owner":"stoplightio","description":"Paired with a resolver package, readers handle the loading of $ref content. This repo contains some common readers for files, URLs, etc.","archived":false,"fork":false,"pushed_at":"2025-01-23T09:59:33.000Z","size":1315,"stargazers_count":2,"open_issues_count":27,"forks_count":3,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-05T12:47:13.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@stoplight/json-ref-readers","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stoplightio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://offset.earth/stoplightinc"]}},"created_at":"2019-10-09T09:14:29.000Z","updated_at":"2024-04-10T08:59:19.000Z","dependencies_parsed_at":"2024-06-18T22:36:35.352Z","dependency_job_id":"e6ec4f44-2a55-467a-814a-1a09c0d7942c","html_url":"https://github.com/stoplightio/json-ref-readers","commit_stats":{"total_commits":27,"total_committers":6,"mean_commits":4.5,"dds":0.4814814814814815,"last_synced_commit":"e09bc17ecedcbf3c5c8b3cb7e342528c00b14f3a"},"previous_names":["stoplightio/ref-resolvers"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fjson-ref-readers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fjson-ref-readers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fjson-ref-readers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoplightio%2Fjson-ref-readers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stoplightio","download_url":"https://codeload.github.com/stoplightio/json-ref-readers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339121,"owners_count":20923009,"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-11-06T07:14:23.355Z","updated_at":"2025-04-08T00:32:20.241Z","avatar_url":"https://github.com/stoplightio.png","language":"TypeScript","funding_links":["https://offset.earth/stoplightinc"],"categories":[],"sub_categories":[],"readme":"# json-ref-readers\nSet of utilities for reading external json references.\n\n## Installation\n\n```bash\nyarn add @stoplight/json-ref-readers\n```\n\n## Usage\n\nThe library exports two functions: `resolveHttp` and `resolveFile`. Both take `uri.URI` and resolve to a string containing requested resource.\n\n```ts\nimport { Resolver } from '@stoplight/json-ref-resolver';\nimport { resolveFile, resolveHttp } from '@stoplight/json-ref-readers';\n\nconst httpAndFileResolver = new Resolver({\n  resolvers: {\n    https: { resolve: resolveHttp },\n    http: { resolve: resolveHttp },\n    file: { resolve: resolveFile },\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoplightio%2Fjson-ref-readers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstoplightio%2Fjson-ref-readers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoplightio%2Fjson-ref-readers/lists"}