# rcombo

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

Latest version **1.0.6** (published 2016-01-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install rcombo
pnpm add rcombo
yarn add rcombo
bun add rcombo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2016-01-20 |
| First published | 2016-01-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | SkyCai |
| Maintainers | cnt1992 |
| Keywords | combo |

## Links

- npm: https://www.npmjs.com/package/rcombo
- Repository: https://github.com/cnt1992/rcombo
- Homepage: https://github.com/cnt1992/rcombo#readme
- Issues: https://github.com/cnt1992/rcombo/issues
- npm.io page: https://npm.io/package/rcombo

## Dependencies (4)

- [async](https://npm.io/package/async.md) ^1.5.2
- [request](https://npm.io/package/request.md) ^2.67.0
- [clean-css](https://npm.io/package/clean-css.md) ^3.4.9
- [uglify-js](https://npm.io/package/uglify-js.md) ^2.6.1

## Recent versions

- 1.0.6 (latest) — 2016-01-20
- 1.0.5 — 2016-01-20
- 1.0.4 — 2016-01-19
- 1.0.3 — 2016-01-18
- 1.0.2 — 2016-01-14
- 1.0.1 — 2016-01-14
- 1.0.0 — 2016-01-14

## README

# rcombo

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

## Install

```bash
npm install --save rcombo
```

## Usage

```javascript
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

```bash
npm run "test js"
// or
npm run "test css"
```

---
_Source: https://npm.io/package/rcombo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
