{"id":17049074,"url":"https://github.com/toddself/commonjs-concat","last_synced_at":"2026-05-04T12:36:24.294Z","repository":{"id":31491942,"uuid":"35056128","full_name":"toddself/commonjs-concat","owner":"toddself","description":"Output a single file to export all files in a directory structure","archived":false,"fork":false,"pushed_at":"2015-05-04T20:40:11.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T05:12:00.858Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toddself.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":"2015-05-04T19:57:07.000Z","updated_at":"2019-05-30T06:09:38.000Z","dependencies_parsed_at":"2022-08-05T04:00:26.375Z","dependency_job_id":null,"html_url":"https://github.com/toddself/commonjs-concat","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2Fcommonjs-concat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2Fcommonjs-concat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2Fcommonjs-concat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddself%2Fcommonjs-concat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toddself","download_url":"https://codeload.github.com/toddself/commonjs-concat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245054048,"owners_count":20553440,"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":[],"created_at":"2024-10-14T09:53:48.389Z","updated_at":"2026-05-04T12:36:24.244Z","avatar_url":"https://github.com/toddself.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build status](https://secure.travis-ci.org/toddself/commonjs-concat.png)](http://travis-ci.org/toddself/commonjs-concat)\n\n# commonjs-concat\n\nTake a directory of files and create a single file which exports all the files in the directory structure.\n\n## Usage\n\n### CLI\n\n```\n$ npm i -g commonjs-concat\n$ tree test/fixtures\ntest/fixtures\n├── more\n│   └── testing.js\n├── test-file-1.js\n├── test_file-2.js\n└── testing.json\n$ cjs-concat test/fixtures\nexports.testFile1 = require('/Users/todd/src/commonjs-concat/test/fixtures/test-file-1.js');\nexports.testFile2 = require('/Users/todd/src/commonjs-concat/test/fixtures/test_file-2.js');\nexports.testing = require('/Users/todd/src/commonjs-concat/test/fixtures/more/testing.js');\n# cjs-concat test/fixtures --no-relative -f\"*json\"\nexports.testFile1 = require('./test-file-1.js');\nexports.testFile2 = require('./test_file-2.js');\nexports.testing = require('./testing.json');\nexports.testing1 = require('./more/testing.js');\n```\n\n```\nUsage:\n    cjs-concat PATH [options]\n\nOptions:\n    -h, --help         print usage information\n    -v, --version      show version info and exit\n    -o, --output       Write output to file, default: stdout\n    -d, --ignoreDir    Ignore directories, default: node_modules\n    -f, --includeFile  Include other file patterns. default: *.js\n    --no-relative      Make paths relative to PATH\n```\n\n### API\n\n```js\n\u003e var concat = require('commonjs-concat');\n\u003e concat('test/fixtures', {includeFile: '*json', relative: false}, function(err, output) {\n  console.log(output);\n});\nexports.testFile1 = require('./test-file-1.js');\nexports.testFile2 = require('./test_file-2.js');\nexports.testing = require('./testing.json');\nexports.testing1 = require('./more/testing.js');\n```\n\n### Licence\nCopyright 2015 Todd Kennedy, Apache 2 license","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddself%2Fcommonjs-concat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoddself%2Fcommonjs-concat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddself%2Fcommonjs-concat/lists"}