# cssspace

> Rewrite each selectors in css.

Latest version **1.1.1** (published 2015-10-02) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2015-10-02 |
| First published | 2015-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | okunishinishi |
| Maintainers | okunishinishi |
| Keywords | css, convert, selector |

## Links

- npm: https://www.npmjs.com/package/cssspace
- Repository: https://github.com/okunishinishi/node-cssspace
- Homepage: https://github.com/okunishinishi/node-cssspace#readme
- Issues: https://github.com/okunishinishi/node-cssspace/issues
- npm.io page: https://npm.io/package/cssspace

## Dependencies (3)

- [css](https://npm.io/package/css.md) ^2.2.1
- [argx](https://npm.io/package/argx.md) ^1.3.1
- [async](https://npm.io/package/async.md) ^1.4.2

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2015-10-02
- 1.1.0 — 2015-09-30
- 1.0.0 — 2015-09-29

## README

cssspace
==========

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]

[bd_repo_url]: https://github.com/okunishinishi/node-cssspace
[bd_travis_url]: http://travis-ci.org/okunishinishi/node-cssspace
[bd_travis_shield_url]: http://img.shields.io/travis/okunishinishi/node-cssspace.svg?style=flat
[bd_license_url]: https://github.com/okunishinishi/node-cssspace/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/okunishinishi/node-cssspace
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/okunishinishi/node-cssspace.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/okunishinishi/node-cssspace.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/okunishinishi/node-cssspace
[bd_gemnasium_shield_url]: https://gemnasium.com/okunishinishi/node-cssspace.svg
[bd_npm_url]: http://www.npmjs.org/package/cssspace
[bd_npm_shield_url]: http://img.shields.io/npm/v/cssspace.svg?style=flat
[bd_bower_badge_url]: https://img.shields.io/bower/v/cssspace.svg?style=flat

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Rewrite each selectors in css.

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>


<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/readme/01.Installation.md.hbs" Start -->

<a name="section-doc-readme-01-installation-md"></a>
Installation
-----

```bash
$ npm install cssspace --save
```

<!-- Section from "doc/readme/01.Installation.md.hbs" End -->

<!-- Section from "doc/readme/02.Usage.md.hbs" Start -->

<a name="section-doc-readme-02-usage-md"></a>
Usage
---------

### Wrap Each Selectors

`cssspace.wrap(css, parent)` method parses css string and add parent selector to each selectors.

```javascript
var cssspace = require('cssspace');

var converted = cssspace.addParent('header{background:#FFF}', 'main');
console.log(converted); // -> "main header {\n  background: #FFF;\n}"
```

<!-- Section from "doc/readme/02.Usage.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/okunishinishi/node-cssspace/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------

+ [node-css](https://github.com/reworkcss/css)

<!-- Links End -->

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