{"id":15758213,"url":"https://github.com/zkochan/load-json5-file","last_synced_at":"2025-11-12T22:18:22.813Z","repository":{"id":57290444,"uuid":"88429178","full_name":"zkochan/load-json5-file","owner":"zkochan","description":"Read and parse a JSON5 file","archived":false,"fork":false,"pushed_at":"2017-08-06T20:09:25.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T20:20:32.019Z","etag":null,"topics":[],"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/zkochan.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":"2017-04-16T16:55:24.000Z","updated_at":"2017-04-16T16:58:59.000Z","dependencies_parsed_at":"2022-09-02T05:41:23.979Z","dependency_job_id":null,"html_url":"https://github.com/zkochan/load-json5-file","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zkochan/load-json5-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fload-json5-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fload-json5-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fload-json5-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fload-json5-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkochan","download_url":"https://codeload.github.com/zkochan/load-json5-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkochan%2Fload-json5-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284119335,"owners_count":26950598,"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","status":"online","status_checked_at":"2025-11-12T02:00:06.336Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-04T09:43:37.452Z","updated_at":"2025-11-12T22:18:22.798Z","avatar_url":"https://github.com/zkochan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# load-json5-file\n\n\u003e Read and parse a JSON5 file\n\n\u003c!--@shields('npm', 'travis')--\u003e\n[![npm version](https://img.shields.io/npm/v/load-json5-file.svg)](https://www.npmjs.com/package/load-json5-file) [![Build Status](https://img.shields.io/travis/zkochan/load-json5-file/master.svg)](https://travis-ci.org/zkochan/load-json5-file)\n\u003c!--/@--\u003e\n\n[Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom) and uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs).\n\n## Installation\n\n```sh\nnpm i -S load-json5-file\n```\n\n## Usage\n\n\u003c!--@example('./example/index.js')--\u003e\n```js\n'use strict'\nconst loadJson5File = require('load-json5-file')\nconst path = require('path')\n\nconst fixture = path.join(__dirname, 'countries.json5')\nconst countries = loadJson5File.sync(fixture)\nconsole.log(countries)\n//\u003e [ 'Ukraine', 'Hungary', 'Slovakia' ]\n```\n\u003c!--/@--\u003e\n\n## API\n\n### `loadJson5File(filepath)`\n\nReturns a promise for the parsed JSON5.\n\n### `loadJson5File.sync(filepath)`\n\nReturns the parsed JSON5.\n\n## Related\n\n- [write-json5-file](https://github.com/zkochan/write-json5-file) - Stringify and write JSON5 to a file atomically\n- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file\n- [json5](https://github.com/json5/json5) - JSON for the ES5 era\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkochan%2Fload-json5-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkochan%2Fload-json5-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkochan%2Fload-json5-file/lists"}