# obj-sass

> convert Object to scss/sass variable String.

Latest version **0.1.0** (published 2015-10-16) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-10-16 |
| First published | 2015-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | kaminaly |
| Keywords | config, variable, js, coffee, json, sass, scss, css |

## Links

- npm: https://www.npmjs.com/package/obj-sass
- Repository: https://github.com/devjam/obj-sass
- Issues: https://github.com/devjam/obj-sass/issues
- npm.io page: https://npm.io/package/obj-sass

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-10-16

## README

# obj-sass

> convert Object to scss/sass variable String.

based on [gulp-json-sass](https://github.com/rbalicki2/gulp-json-sass)


## Install

```bash
$ npm install obj-sass
```

## Usage

```js
var objSass = require('obj-sass');
var options = {};
var sass = objSass(options);
```

### options
almost same options with `gulp-json-sass`.
but `obj` is added and `ignoreJsonErrors` is deleted.

see [gulp-json-sass](https://github.com/rbalicki2/gulp-json-sass#options)

#### obj
Type: `Object` Default: {}  
the `object` will be converted to scss/sass variable string.

```js
objSass({
  obj: {
    key: 'value',
    obj: {
        key: 0
    },
    array: [1, 2, 3]
  }
});

// output
// $key: value;
// $obj-key: 0;
// $array-0: 1;
// $array-1: 2;
// $array-2: 3;
//
```

## License
[MIT](http://opensource.org/licenses/MIT)

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