# gulp-css-to-js

> convert css to js which makes style tag

Latest version **0.0.2** (published 2017-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-css-to-js
pnpm add gulp-css-to-js
yarn add gulp-css-to-js
bun add gulp-css-to-js
```

## 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.0.2 |
| Published | 2017-05-22 |
| First published | 2015-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | tamtakoe |
| Maintainers | tamtakoe |
| Keywords | gulpplugin, css2js |

## Links

- npm: https://www.npmjs.com/package/gulp-css-to-js
- Repository: https://github.com/tamtakoe/gulp-css-to-js
- Issues: https://github.com/tamtakoe/gulp-css-to-js/issues
- npm.io page: https://npm.io/package/gulp-css-to-js

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) ^2.0.3
- [js-string-escape](https://npm.io/package/js-string-escape.md) ^0.0.1

## Recent versions

- 0.0.2 (latest) — 2017-05-22
- 0.0.1 — 2015-05-03

## README

# gulp-css-to-js [![NPM version](https://badge.fury.io/js/gulp-css-to-js.svg)](http://badge.fury.io/js/gulp-css-to-js)

> gulp plugin which convert css-file to js-file which makes style tag

## Install with [npm](npmjs.org)

```sh
npm install gulp-css-to-js
```

## Usage

```js
var cssToJs = require('gulp-css-to-js');

var scriptStream = gulp.src('src/**/*.js');
    
var styleStream = gulp.src('src/**/*.css')
    .pipe(cssToJs());
    
merge(scriptStream, styleStream)
    .pipe(concat('script.js'))
//the script.js will insert styles in DOM by running document.createElement('style')
```


## License

Copyright (c) 2014-2015 Oleg Istomin
Released under the MIT license

***

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