# css_wrap_2018

> Wrap CSS rules in a namespace

Latest version **1.0.6** (published 2018-07-24) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2018-07-24 |
| First published | 2018-07-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | daniele.dematteo.gessulat |

## Links

- npm: https://www.npmjs.com/package/css_wrap_2018
- npm.io page: https://npm.io/package/css_wrap_2018

## 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

- 1.0.6 (latest) — 2018-07-24
- 1.0.5 — 2018-07-24
- 1.0.4 — 2018-07-17
- 1.0.3 — 2018-07-13

## README

# gg-css-wrap

> Wrap CSS rules in a namespace

## Install

```shell
npm i css_wrap_2018
```

## Usage

`csswrap(string|file, options)`

```js
var
  css_wrap = require('css-wrap'),
  output = css_wrap('.some-css-selector { background: green; }', {
    selector: '.my-app',
    skip: /skip-class/,
    parent: /parent-class/
  });
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.

#### options.skip
Type: `Regular expression`
Default value: `null`

Skip css rules by regular expressions

#### options.parent
Type: `Regular expression`
Default value: `null`

Parent css rules by regular expressions

## Changelog

v0.0.1 - Initial Release
v0.0.2 - Added options.skip

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