concat-with-sourcemaps / 1.0.4 last updated 6 months ago created on Jul 8th 2014
Install
npm install --save concat-with-sourcemaps
Clone
git clone git@github.com:floridoo/concat-with-sourcemaps.git
dependencies
| main |
|
source-map | 0.5.3 | BSD 3-Clause |
maintainers
floridoo
versions
12 total
| 1.0.4 | 6 months ago | floridoo |
| 1.0.3 | 6 months ago | floridoo |
| 1.0.2 | a year ago | floridoo |
| 1.0.1 | a year ago | floridoo |
| 1.0.0 | a year ago | floridoo |
| 0.1.6 | a year ago | floridoo |
| 0.1.5 | 2 years ago | floridoo |
| 0.1.4 | 2 years ago | floridoo |
| 0.1.3 | 2 years ago | floridoo |
| 0.1.2 | 2 years ago | floridoo |
| 0.1.1 | 2 years ago | floridoo |
| 0.1.0 | 2 years ago | floridoo |
readme
Concat with source maps

NPM module for concatenating files and generating source maps.
Usage example
API
new Concat(generateSourceMap, outFileName, separator)
Initialize a new concat object.
Parameters:
- generateSourceMap: whether or not to generate a source map (default: false)
- outFileName: the file name/path of the output file (for the source map)
- separator: the string that should separate files (default: no separator)
concat.add(fileName, content, sourceMap)
Add a file to the output file.
Parameters:
- fileName: file name of the input file (can be null for content without a file reference, e.g. a license comment)
- content: content (Buffer or string) of the input file
- sourceMap: optional source map of the input file (string). Will be merged into the output source map.
concat.content
The resulting concatenated file content (Buffer).
concat.sourceMap
The resulting source map of the concatenated files (string).