# merge-sass

> This tool can merge non-compiled SASS

Latest version **1.0.2** (published 2021-08-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install merge-sass
pnpm add merge-sass
yarn add merge-sass
bun add merge-sass
```

## 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.2 |
| Published | 2021-08-12 |
| First published | 2021-06-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 320.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Brat |
| Maintainers | iceleo-com |
| Keywords | sass, scss, merge |

## Links

- npm: https://www.npmjs.com/package/merge-sass
- Repository: https://github.com/iceleo-com/merge-sass
- Homepage: https://github.com/iceleo-com/merge-sass#readme
- Issues: https://github.com/iceleo-com/merge-sass/issues
- npm.io page: https://npm.io/package/merge-sass

## Dependencies (6)

- [react](https://npm.io/package/react.md) ^17.0.2
- [core-js](https://npm.io/package/core-js.md) ^3.14.0
- [deepmerge](https://npm.io/package/deepmerge.md) ^4.2.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [postcss-scss](https://npm.io/package/postcss-scss.md) ^3.0.5
- [is-mergeable-object](https://npm.io/package/is-mergeable-object.md) ^1.1.1

## Recent versions

- 1.0.2 (latest) — 2021-08-12
- 1.0.1 — 2021-06-08
- 1.0.0 — 2021-06-08

## README

# merge-sass
This tool can merge non-compiled SASS

# Installation
`npm install merge-sass --save-dev`

# Online test
[https://iceleo-com.github.io/merge-sass/index.html](https://iceleo-com.github.io/merge-sass/index.html)

# Example
```
const fs = require('fs');
const mergeSass = require('merge-sass');

const result = mergeSass(
    fs.readFileSync('/path_to_target_sass_file.scss'),
    fs.readFileSync('/path_to_update_sass_file.scss'),
);
```
> **Target Rules**
> ```
> body {
>     background: red;
>     text-decoration: none;
> }
> 
> body {
>     background: blue;
>     margin: 10px;
> }
> ```
> **Update Rules**
> ```
> body {
>     background: green;
>     margin: 0 10px;
>     text-align: center;
> }
> ```
> **Expected Rules**
> ```
> body {
>     background: green;
>     text-decoration: none;
>     margin: 0 10px;
>     text-align: center;
> }
> ```

# Contribution
This tool has a lot of limits but I have no time to make it better, so every contribution is welcome.

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