Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rcombo

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rcombo

Remote combine/combo (optional compress) JS or CSS files into single one

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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"

Keywords

FAQs

Package last updated on 20 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc