This package has been deprecated

Author message:

This package is no longer maintained.

js-cat

0.10.0 • Public • Published

Concatenate Javascript Files With Sourcemaps

Installation

npm install js-cat

Usage

 
jsCat = require('js-cat');
 
//From Code
 
var files = [
    {code : '<Javascript Source Code>', map: '<optional><old sourcemap>', path: '<Path of File>'},
    {code : '<Javascript Source Code>', map: '<optional><old sourcemap>', path: '<Path of File>'}
]
 
jsCat.concatSource(files, { mapFilePath : 'output.min.map' }, function(err, data) {
    
    if(err) return console.log(err);
    
    console.log(data.code, data.map);
 
})
 
//From Files List
 
jsCat.concatFiles(['test1.js', 'test2.js'], { mapFilePath : 'output.min.map' }, function(err, data) {
    
    if(err) return console.log(err);
    
    console.log(data.code, data.map);
 
})
 

License

MIT

Package Sidebar

Install

npm i js-cat

Weekly Downloads

4

Version

0.10.0

License

MIT

Last publish

Collaborators

  • sbspk