# @jswork/next-sass-get

> Deep get for sass-loader based node-sass.

Latest version **1.0.0** (published 2021-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jswork/next-sass-get
pnpm add @jswork/next-sass-get
yarn add @jswork/next-sass-get
bun add @jswork/next-sass-get
```

## 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.0 |
| Published | 2021-03-19 |
| First published | 2021-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |
| Keywords | next, sass, scss, sass-deep-get, sass-get, deep-get |

## Links

- npm: https://www.npmjs.com/package/@jswork/next-sass-get
- Homepage: https://github.com/afeiship/next-sass-get
- npm.io page: https://npm.io/package/@jswork/next-sass-get

## Dependencies (2)

- [node-sass](https://npm.io/package/node-sass.md) ^5.0.0
- [node-sass-utils](https://npm.io/package/node-sass-utils.md) ^1.1.3

## Recent versions

- 1.0.0 (latest) — 2021-03-19

## README

# next-sass-get
> Deep get for sass-loader based node-sass.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-sass-get
```

## apis
| api | params | description   |
|-----|--------|---------------|
| get | -      | desc balabala |


## usage
```js
import NxSassGet from '@jswork/next-sass-get';

// code goes here:
const cssResult = sass.renderSync({
  data: sassString,
  options: {
    outputStyle: 'expanded'
  },
  functions: NxSassGet.create({
    color: {
      primary: {
        default: '#4cd964',
        dark: '#f60',
        light: '#eee'
      },
      secondary: '#999'
    }
  })
});
```

### input
```scss
$colors: (
  f: #fff,
  e: #eee,
  0: #000,
  3: #333,
  6: #666,
  8: #888,
  9: #999,
  primary: get("color.primary.default"),
  secondary: get("color.secondary")
);

.color1 {
  color: map-get($colors, primary);
}

.color2 {
  background: get("color.secondary");
}
```

### output
```css
.color1 {
  color: #4cd964; }

.color2 {
  background: #999; }
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-sass-get/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-sass-get
[version-url]: https://npmjs.org/package/@jswork/next-sass-get

[license-image]: https://img.shields.io/npm/l/@jswork/next-sass-get
[license-url]: https://github.com/afeiship/next-sass-get/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-sass-get
[size-url]: https://github.com/afeiship/next-sass-get/blob/master/dist/next-sass-get.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-sass-get
[download-url]: https://www.npmjs.com/package/@jswork/next-sass-get

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