| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
NPM module for concatenating files and generating source maps.
var concat = new Concat(true, 'all.js', '\n');
concat.add(null, "// (c) John Doe");
concat.add('file1.js', file1Content);
concat.add('file2.js', file2Content, file2SourceMap);
var concatenatedContent = concat.content;
var sourceMapForContent = concat.sourceMap;Initialize a new concat object.
Parameters:
Add a file to the output file.
Parameters:
The resulting concatenated file content (Buffer).
The resulting source map of the concatenated files (string).
| Back | FazBrowse Home | New Git URL |