# gulp-obj-sass-file

> gulp plugin for converting Object to scss/sass variable String and output file.

Latest version **0.1.1** (published 2019-04-09) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2019-04-09 |
| First published | 2015-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | kaminaly |
| Keywords | gulp, config, variable, js, coffee, json, sass, scss, css |

## Links

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

## Dependencies (4)

- [obj-sass](https://npm.io/package/obj-sass.md) ^0.1.0
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.6
- [deep-extend](https://npm.io/package/deep-extend.md) >=0.5.1

## 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.1 (latest) — 2019-04-09
- 0.1.0 — 2015-10-16

## README

# gulp-obj-sass-file

> gulp plugin for converting Object to scss/sass variable String and output file.

## Install

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

## Usage

```js
var objSassFile = require('gulp-obj-sass-file'),
    gulp = require('gulp'),
    sass = require('gulp-sass');

gulp.task('conf-to-sass', function() {
  return gulp
    .src([
      'data/config.js',
      'data/config.json',
      'data/config.coffee' // if you use coffee-script
      ])
    .pipe(objSassFile({
      output: {
        path: 'css/variable.scss'
      }
    }))
    .pipe(gulp.dest('./'));
});
```

### options
almost same options with `obj-sass`.  
but `output` added.

see [obj-sass](https://github.com/devjam/obj-sass#options).

#### output
Type: `Object` Default: {}  
used for `File` of `gulp-util` options

##### output.cwd
Type: `String`  Default: `process.cwd()`  
the current working directory.

##### output.base
Type: `String`  Default: `output.cwd`  
used for relative pathing. typically where a glob starts.

##### output.path
Type: `String`  Default: `undefined`  
full path to the file.

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

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