# combo-js-css

> Combo JS & CSS --------------

Latest version **0.0.4** (published 2013-06-13) · 0 weekly downloads

## Install

```sh
npm install combo-js-css
pnpm add combo-js-css
yarn add combo-js-css
bun add combo-js-css
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2013-06-13 |
| First published | 2013-06-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| Author | Jesse Foltz |
| Maintainers | jfoltz |

## Links

- npm: https://www.npmjs.com/package/combo-js-css
- npm.io page: https://npm.io/package/combo-js-css

## Dependencies (3)

- [express](https://npm.io/package/express.md) 3.x
- [uglify-js](https://npm.io/package/uglify-js.md) 1.2.5
- [css-compressor](https://npm.io/package/css-compressor.md) 1.0.0

## Recent versions

- 0.0.4 (latest) — 2013-06-13
- 0.0.3 — 2013-06-12
- 0.0.2 — 2013-06-12
- 0.0.1 — 2013-06-12

## README

Combo JS & CSS
--------------

This app is designed to work with express. Either on it's own or as a dependency that can be passed a express instance.

If run as a stand alone service you can configure the app via config.json.

If running as a dependency you can pass in similar params as an object. Like this:

    var express = require("express);
        combo = require("combo-js-css");
        app = express();
    
    combo.bindComboService(app, {
        /* These can be configured per request with qquery params */
        "dev": false,
        "cacheTimeOut": 5, 
        "compressJS": true,
        "compressCSS": true,
        
        /* These are set once configs that define the routing */
        "port":8080,
        "baseComboPath":"/combo",
        "jsComboPath":"/js/",
        "cssComboPath":"/css/",
        
        /* 
        *  For every path recieved on either the js or css combo the service
        *  will look in the these paths for a match before giving up.
        *  This is the most crucial configuration.
        */
        "pathSets":[
            
            {
                "rootPath":"/www",
                "cssRootPath":"/css/",
                "jsRootPath":"/js/"
            },
            {
                "rootPath":"/data/static",
                "cssRootPath":"/css/",
                "jsRootPath":"/js/"
            }
        ]
    });

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