{"id":16916695,"url":"https://github.com/thedaviddias/gulp-json-concat","last_synced_at":"2025-03-22T11:30:40.143Z","repository":{"id":35622265,"uuid":"39896092","full_name":"thedaviddias/gulp-json-concat","owner":"thedaviddias","description":"⚡️ Combine several JSON files into one with Gulp","archived":false,"fork":false,"pushed_at":"2023-02-27T16:31:00.000Z","size":54,"stargazers_count":11,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T08:16:18.523Z","etag":null,"topics":["concat","concatenation","gulp","gulp-plugin","json","json-concat","json-files"],"latest_commit_sha":null,"homepage":"","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/thedaviddias.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-29T13:53:46.000Z","updated_at":"2024-02-29T17:25:16.000Z","dependencies_parsed_at":"2024-06-18T21:19:31.301Z","dependency_job_id":"e50ab81f-6496-4b8b-8dea-84933ca2c5cd","html_url":"https://github.com/thedaviddias/gulp-json-concat","commit_stats":{"total_commits":21,"total_committers":4,"mean_commits":5.25,"dds":0.4285714285714286,"last_synced_commit":"a64b37311bb0cf7747176e15f885c204d8a032df"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedaviddias%2Fgulp-json-concat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedaviddias%2Fgulp-json-concat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedaviddias%2Fgulp-json-concat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedaviddias%2Fgulp-json-concat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedaviddias","download_url":"https://codeload.github.com/thedaviddias/gulp-json-concat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244894322,"owners_count":20527676,"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":["concat","concatenation","gulp","gulp-plugin","json","json-concat","json-files"],"created_at":"2024-10-13T19:29:25.971Z","updated_at":"2025-03-22T11:30:39.848Z","avatar_url":"https://github.com/thedaviddias.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [gulp](https://gulpjs.com)-json-concat\n\n[![Build Status](https://travis-ci.org/thedaviddias/gulp-json-concat.svg?branch=master)](https://travis-ci.org/thedaviddias/gulp-json-concat)\n[![Coverage Status](https://coveralls.io/repos/github/thedaviddias/gulp-json-concat/badge.svg?branch=master)](https://coveralls.io/github/thedaviddias/gulp-json-concat?branch=master)\n[![Dependencies](https://david-dm.org/thedaviddias/gulp-json-concat.png)](https://david-dm.org/thedaviddias/gulp-json-concat)\n[![Known Vulnerabilities](https://snyk.io/test/github/thedaviddias/gulp-json-concat/badge.svg)](https://snyk.io/test/github/thedaviddias/gulp-json-concat)\n[![npm module downloads per month](http://img.shields.io/npm/dm/gulp-json-concat.svg)](https://www.npmjs.org/package/gulp-json-concat)\n\n\u003e Combine several JSON files with Gulp\n\ngulp-json-concat is a fork of [gulp-jsoncombine](https://www.npmjs.com/package/gulp-jsoncombine) with new few options.\n\n## Install\n\n[![NPM](https://nodei.co/npm/gulp-json-concat.png?compact=true)](https://www.npmjs.org/package/gulp-json-concat)\n\n```shell\n$ npm install --save-dev gulp-json-concat\n```\n\n## Usage\n\nYou can combine json files that are in subfolders. The json generated will remove the name of these folders to keep only the name of the file.\n\n```js\nvar gulp = require('gulp');\nvar jsonConcat = require('gulp-json-concat');\n\ngulp.task('json', function () {\n  return gulp.src('db/**/*.json')\n    .pipe(jsonConcat('db.json',function(data){\n      return new Buffer(JSON.stringify(data));\n    }))\n    .pipe(gulp.dest('dist/json'));\n});\n```\n\n## API\n\n### jsonConcat(fileName, processor)\n\n#### fileName\nType: `String`\n\nThe output filename.\n\n#### processor\nType: `Function`\n\nThe function that will be called with the dictionary containing all the data from the processes JSON files, where the keys of the dictionary, would be the names of the files (sans the '.json' postfix).\n\nThe function should return a new `Buffer` that would be writter to the output file.\n\n## Changelog\n### 0.2.0 Update\n* Update dependencies\n\n### 0.1.1 Update and corrections\n* Update dependencies\n* Fix relative path + filename on macOs (thanks to @cmandlbaur)\n* Update travis.yml, editorconfig and package.json\n* Add new badges (Coveralls, Snyk)\n\n### 0.0.4 Add jsonlint\n* Analyse json files and show exactly wehre is the error\n\n### 0.0.1 Initial release\n* initial code\n\n## License\n\nMIT © 2017 [David Dias](http://thedaviddias.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedaviddias%2Fgulp-json-concat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedaviddias%2Fgulp-json-concat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedaviddias%2Fgulp-json-concat/lists"}