# css2sass

> a easy way to convert css to sass

Latest version **0.1.1** (published 2017-02-13) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2017-02-13 |
| First published | 2016-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | heeefei |
| Maintainers | heeefei |
| Keywords | css2sass, css, sass |

## Links

- npm: https://www.npmjs.com/package/css2sass
- Repository: https://github.com/heeefei/css2sass
- Homepage: https://github.com/heeefei/css2sass#readme
- Issues: https://github.com/heeefei/css2sass/issues
- npm.io page: https://npm.io/package/css2sass

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

- 0.1.1 (latest) — 2017-02-13
- 0.1.0 — 2016-12-29

## README

# css2sass
convert css file to sass file
## what it does
css2sass is a easy way to convert css file to sass file. For example, it can convert

    .container {
        display: block;
        width: 100px;
        height: 100px;   
    }
to

    .container
      display: block
      width: 100px
      height: 100px

## how to use
```
var css2sass = require('css2sass')
var path = '/path/to/your/css/file/'
var targetPath = 'path/to/your/target/sass/file'
css2sass(path, targetPath)

```

## note
the little function convert css file to sass file by regexp, and it can't find grammer error,
so you shoule promise the css grammer is legal.

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