koncat
Concatenate filenames into a single file.
Node.js Usage
concat files as is with titles between
const koncat =
create js file with requires
const koncat =
For a directory with the structure
- tests/
- utils_test.js
- controllers/
- index_test.js
- list_test.js
this creates a file at tests_main.js
with the content
// require module tests/utils_test.js; // require module tests/controllers/index_test.js; // require module tests/controllers/list_test.js;
CLI Usage
-t'... {path} ...'
- add titles with file paths
koncat '*.js' > bundle.jskoncat -t '/*< file: {path} */' -- '*.js' > bundle.jskoncat -o bundle.js -t '//< file: {path}' -- '*.js'koncat -t '' -- '*.js' # defalut title