{"id":27398099,"url":"https://github.com/bernardodiasc/filestojson","last_synced_at":"2025-07-02T21:04:58.011Z","repository":{"id":42041234,"uuid":"100805571","full_name":"bernardodiasc/filestojson","owner":"bernardodiasc","description":"Generates JSON from static files [stable]","archived":false,"fork":false,"pushed_at":"2018-01-12T12:54:33.000Z","size":254,"stargazers_count":8,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T17:56:09.481Z","etag":null,"topics":["cms","frontmatter","javascript","json","markdown","nodejs","static-database","static-files"],"latest_commit_sha":null,"homepage":"https://bernardodiasc.github.io/filestojson/","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/bernardodiasc.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-08-19T16:07:20.000Z","updated_at":"2022-07-05T00:51:34.000Z","dependencies_parsed_at":"2022-08-23T16:20:13.525Z","dependency_job_id":null,"html_url":"https://github.com/bernardodiasc/filestojson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bernardodiasc/filestojson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernardodiasc%2Ffilestojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernardodiasc%2Ffilestojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernardodiasc%2Ffilestojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernardodiasc%2Ffilestojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernardodiasc","download_url":"https://codeload.github.com/bernardodiasc/filestojson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernardodiasc%2Ffilestojson/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260507007,"owners_count":23019454,"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":["cms","frontmatter","javascript","json","markdown","nodejs","static-database","static-files"],"created_at":"2025-04-14T01:29:13.155Z","updated_at":"2025-07-02T21:04:57.953Z","avatar_url":"https://github.com/bernardodiasc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# filestojson\n\nThis script will generarate JSON file from content files.\n\n## Setup\n\n```shel\nnpm install filestojson --save-dev\n```\n\nNote: you may have to install Babel globaly to be able to use this lib:\n\n```shell\nnpm install -g babel-cli\n```\n\n## Examples\n\nWhat's the application of this? You may ask.\n\nCheck the examples of different front-end stacks loading the data and rendering the page:\n\n```shell\nnpm run examples\n```\n\n## How to use\n\nCommand line:\n\n```shell\nfilestojson ./path/to/config.js\n```\n\nScript:\n\n```js\nimport config from './path/to/config.js'\nfilestojson(config)\n```\n\n### Configuration\n\nPlease refer to the [examples/config.js](examples/config.js) implementation for further example.\n\nExplaining, the `config` is expected to return an object with the keys:\n\n- `content` should be a string for the content folder path, where all content types containing markdown, images and other suff are located;\n- `output` should be a string for the JSON file path that will be generated;\n- `include` should be an array of strings, where the strings are file extensions that will be included;\n- `exclude` should be an array of strings, where the strings are file name with the extension that will be ignored;\n- `contentTypes` should be an array of object, each object containing key and the content type translation function;\n\n### Content types and translations\n\n... TBP ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernardodiasc%2Ffilestojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernardodiasc%2Ffilestojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernardodiasc%2Ffilestojson/lists"}