filejoin-js
filejoin-js
is a Node.js application used to merge multiple files into a single one
Installation
npm -g install filejoin-js
Command-Line Options:
-c <path to config.json>
-r <path to a root directory>
-t <long pooling refresh time for watching>
-rcwd (if this is set and no root file is defined, root file will be current directory)
-watch (enable this to start long pooling check)
-debug (use this for debug mode writing)
Config file sample:
Command-Line Samples:
Create a one-time build
filejoin -c /user/config.json -r /myproject
Create a watcher:
filejoin -c /user/config.json -r /myproject -watch -debug
Create a watcher with files and config.json in current folder:
filejoin -rwcd -watch
Code Sample:
var FileMerger = FileMerger; var merger = out: 'sample2.txt' in: 'input1.txt' 'input2.txt' out: 'sample2.txt' in: 'input1.txt' 'input2.txt' '/examples/' true; // since version 0.0.18:merger { console;}; merger;
customize the watcher behaviour by keeping cache data: (since version 0.0.24)
var merger = config path true;mergerkeepCache = true; { merger; ;} ; merger { console;}; merger { console;}
retrieve existing config file for other operations: (since version 0.0.24)
var merger = config path true;console;
GNU General Public License
Copyright (C) 2014 Alexandru Stefan
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.