1.0.6 • Published 10 years ago

rcombo v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

rcombo

A npm package to combine file and return the combined data.

Install

npm install --save rcombo

Usage

var fs = require('fs');
var rcombo = require('rcombo');

rcombo.combine({
    root        : 'http://aotu.io/athena/dist/js/', // your root directory
    files       : ['modernizr.js','rome.js'],       // your files to combine
    version     : '1.0.0',                          // cached
    compress    : 1                                 // 1:compress, 0:no compress
}).then(function( err, data ){
    // data is the final result
    //console.log(err, data);
    if( !err ){
        fs.writeFile('all.js', data, 'utf8', function(err){
            console.log(err);
        })
    }
})

Test

npm run "test js"
// or
npm run "test css"
1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago