# duo-css-compat

> Duo plugin to support the component styles array

Latest version **0.3.1** (published 2016-07-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install duo-css-compat
pnpm add duo-css-compat
yarn add duo-css-compat
bun add duo-css-compat
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2016-07-21 |
| First published | 2014-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matthew Mueller |
| Maintainers | mattmueller, stephenmathieson, dominicbarnes |

## Links

- npm: https://www.npmjs.com/package/duo-css-compat
- Repository: https://github.com/duojs/css-compat
- Homepage: https://github.com/duojs/css-compat#readme
- Issues: https://github.com/duojs/css-compat/issues
- npm.io page: https://npm.io/package/duo-css-compat

## Dependencies (5)

- [co-fs](https://npm.io/package/co-fs.md) ^1.2.0
- [debug](https://npm.io/package/debug.md) ^2.0.0
- [duo-main](https://npm.io/package/duo-main.md) 0.0.6
- [node-netrc](https://npm.io/package/node-netrc.md) 0.0.1
- [duo-package](https://npm.io/package/duo-package.md) ^0.10.0

## Recent versions

- 0.3.1 (latest) — 2016-07-21
- 0.3.0 — 2015-07-11
- 0.2.0 — 2015-06-24
- 0.1.0 — 2015-06-23
- 0.0.6 — 2015-03-03
- 0.0.4 — 2014-10-27
- 0.0.3 — 2014-09-03
- 0.0.2 — 2014-09-03
- 0.0.1 — 2014-08-26

## README

# css-compat

[![NPM version][https://img.shields.io/npm/v/duo-css-compat.svg]][https://npmjs.org/package/duo-css-compat]
[![build status][https://img.shields.io/travis/duojs/css-compat.svg]][https://travis-ci.org/duojs/css-compat]

**This plugin is included in core Duo**

Duo plugin to support the component `styles` array and dependencies with CSS
assets for backwards compatibility.

This will only trigger on `css` files and if the component you are downloading
has a `styles: [...]` array.

## Future Components

This plugin does slow Duo down a bit when it triggers, so I urge you to write
future CSS components that use the new `@import` syntax. This has the added
benefit of only requiring what you actually use and ensuring proper ordering
of CSS assets.

## Usage

### API

```js
var compat = require('duo-css-compat');

Duo(root)
  .use(compat())
  .entry('index.css')
  .run(fn);
```

### CLI

```sh
$ duo --use duo-css-compat
```

## License

(The MIT License)

Copyright (c) 2014 Matthew Mueller &lt;mattmuelle@gmail.com&gt;

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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