0.2.1 • Published 12 years ago

fcompose v0.2.1

Weekly downloads
10
License
-
Repository
github
Last release
12 years ago

#fcompose Utility to compose one or multiple files into one or mulitple places.

It's quite useful to be used as part of some build scripts.

Installation

npm install fcompose

Example

var compose = require('compose')

compose({
    input:  ['a.js' , 'b.js' , 'c.js']
  , output: [
        'path/to/abc_min_1.js'
      , 'path/to/abc_min_2.js'   
    ]
  , processor: function(content, next) {
      next(
        content
          .replace(/^\s*/g, '')
          .replace(/\n*/g, '')
          .replace(/\s*([\=\.\(\)\:\{\}\,])\s*/g, '$1')
      )
    }
}); 
0.2.1

12 years ago

0.2.0

12 years ago

0.1.0

13 years ago