# css-wrap

> Wrap CSS rules in a namespace

Latest version **0.1.0** (published 2015-07-08) · 0 weekly downloads

## Install

```sh
npm install css-wrap
pnpm add css-wrap
yarn add css-wrap
bun add css-wrap
```

## 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.1.0 |
| Published | 2015-07-08 |
| First published | 2015-07-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rafael Nowrotek |
| Maintainers | rexblack |

## Links

- npm: https://www.npmjs.com/package/css-wrap
- Repository: https://github.com/benignware/css-wrap
- Issues: https://github.com/benignware/css-wrap/issues
- npm.io page: https://npm.io/package/css-wrap

## Dependencies (3)

- [css-parse](https://npm.io/package/css-parse.md) ^2.0.0
- [deepmerge](https://npm.io/package/deepmerge.md) ^0.2.10
- [css-stringify](https://npm.io/package/css-stringify.md) ^2.0.0

## Recent versions

- 0.1.0 (latest) — 2015-07-08

## README

# css-wrap

> Wrap CSS rules in a namespace

## Install

```shell
npm install grunt-css-wrap --save-dev
```

## Usage

`csswrap(string|file, options)`

```js
var
  css_wrap = require('css-wrap'),
  output = css_wrap('.some-css-selector { background: green; }', {
    selector: '.my-app'
  });
console.log(output)
// .my-app .some-css-selector {
//   background: green;
// }
```

## Options

#### options.selector
Type: `String`
Default value: `.css-wrap`

Provide a namespace selector in which to wrap CSS.

## Changelog

v0.0.1 - Initial Release

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