{"id":20554076,"url":"https://github.com/aztack/json-ref","last_synced_at":"2026-05-07T19:18:45.851Z","repository":{"id":46916886,"uuid":"219651875","full_name":"aztack/json-ref","owner":"aztack","description":"JSON with reference","archived":false,"fork":false,"pushed_at":"2023-01-05T00:17:07.000Z","size":650,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T14:05:28.345Z","etag":null,"topics":["anchor","json","reference","yaml"],"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/aztack.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-11-05T03:43:12.000Z","updated_at":"2023-03-08T03:30:15.000Z","dependencies_parsed_at":"2023-02-03T01:15:56.926Z","dependency_job_id":null,"html_url":"https://github.com/aztack/json-ref","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/aztack%2Fjson-ref","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aztack%2Fjson-ref/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aztack%2Fjson-ref/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aztack%2Fjson-ref/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aztack","download_url":"https://codeload.github.com/aztack/json-ref/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157922,"owners_count":20081160,"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":["anchor","json","reference","yaml"],"created_at":"2024-11-16T02:46:15.690Z","updated_at":"2026-05-07T19:18:40.817Z","avatar_url":"https://github.com/aztack.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-ref\nJSON with Reference\n\n## Example\n\n```js\nconst deref = require('json-ref').deref;\nconst config = {\n  \"base\": \"https://domain.com/dir\",\n  \"config\": \"{$.base}/project.json\",\n  \"images\": {\n    \"img1\": \"{$.base}/img1.png\",\n    \"img2\": \"{$.base}/img2.png\"\n  },\n  \"props\": {\n    \"button/background\": {\n      \"url\": \"{$.images.img1}\"\n    }\n  }\n};\nconsole.log(deref(config));\n```\n\nwill output\n\n```json\n{\n  \"base\": \"https://domain.com/dir\",\n  \"config\": \"https://domain.com/dir/project.json\",\n  \"images\": {\n    \"img1\": \"https://domain.com/dir/img1.png\",\n    \"img2\": \"https://domain.com/dir/img2.png\"\n  },\n  \"props\": {\n    \"button/background\": {\n      \"url\": \"https://domain.com/dir/img1.png\"\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faztack%2Fjson-ref","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faztack%2Fjson-ref","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faztack%2Fjson-ref/lists"}