{"id":15391935,"url":"https://github.com/scrum/get-cff","last_synced_at":"2025-08-01T02:13:44.717Z","repository":{"id":26877302,"uuid":"106530673","full_name":"Scrum/get-cff","owner":"Scrum","description":"Getting config from file","archived":false,"fork":false,"pushed_at":"2023-02-27T17:26:02.000Z","size":1213,"stargazers_count":4,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T08:03:29.686Z","etag":null,"topics":["config","files","loader"],"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/Scrum.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":"2017-10-11T09:01:50.000Z","updated_at":"2023-03-04T04:56:31.000Z","dependencies_parsed_at":"2024-10-18T23:09:11.330Z","dependency_job_id":null,"html_url":"https://github.com/Scrum/get-cff","commit_stats":{"total_commits":96,"total_committers":3,"mean_commits":32.0,"dds":0.5416666666666667,"last_synced_commit":"98f071164fc700e1761f24a51bf6cebfe248fa7a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Scrum/get-cff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fget-cff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fget-cff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fget-cff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fget-cff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scrum","download_url":"https://codeload.github.com/Scrum/get-cff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrum%2Fget-cff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266087790,"owners_count":23874519,"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":["config","files","loader"],"created_at":"2024-10-01T15:13:32.234Z","updated_at":"2025-07-20T08:04:56.506Z","avatar_url":"https://github.com/Scrum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-cff\n\n\u003e Getting config from file \n\n[![Travis Build Status](https://img.shields.io/travis/Scrum/get-cff.svg?style=flat-square\u0026label=unix)](https://travis-ci.org/Scrum/get-cff)[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/GitScrum/get-cff.svg?style=flat-square\u0026label=windows)](https://ci.appveyor.com/project/GitScrum/get-cff)[![node](https://img.shields.io/node/v/get-cff.svg?maxAge=2592000\u0026style=flat-square)]()[![npm version](https://img.shields.io/npm/v/get-cff.svg?style=flat-square)](https://www.npmjs.com/package/get-cff)[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/sindresorhus/xo)[![codecov](https://img.shields.io/codecov/c/github/Scrum/get-cff/master.svg?style=flat-square)](https://codecov.io/gh/Scrum/get-cff)\n\n[![npm downloads](https://img.shields.io/npm/dm/get-cff.svg?style=flat-square)](https://www.npmjs.com/package/get-cff)[![npm](https://img.shields.io/npm/dt/get-cff.svg?style=flat-square)](https://www.npmjs.com/package/get-cff)\n\n## Why ?\nAuto detect type file and import config from file. Support:\n- [x] js\n- [x] json\n- [x] dot file\n- [x] yml\n\n## Install\n\n```bash\nnpm i -S get-cff\n```\n\n\u003e **Note:** This project is compatible with node v6+\n\n## Usage\n\n```js\nimport getCff from 'get-cff';\n\ngetCff('path/to/config/file')\n    .then(config =\u003e {\n        console.log(config);\n    });\n\n```\n*Returns config object {property: value}*\n\n## Options\n\n### `path`\nType: `string`  \nDefault: ''  \nDescription: *path to you config file*  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrum%2Fget-cff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrum%2Fget-cff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrum%2Fget-cff/lists"}