# gulp-ws-sender

> For live injection of your script and styles to any page

Latest version **1.2.1** (published 2019-01-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-ws-sender
pnpm add gulp-ws-sender
yarn add gulp-ws-sender
bun add gulp-ws-sender
```

## 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.2.1 |
| Published | 2019-01-26 |
| First published | 2018-11-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | rozov1 |
| Maintainers | rozov1 |

## Links

- npm: https://www.npmjs.com/package/gulp-ws-sender
- Repository: https://github.com/bercly0b/gulp-ws-sender
- Homepage: https://github.com/bercly0b/gulp-ws-sender#readme
- Issues: https://github.com/bercly0b/gulp-ws-sender/issues
- npm.io page: https://npm.io/package/gulp-ws-sender

## Dependencies (4)

- [ws](https://npm.io/package/ws.md) ^6.1.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [through2](https://npm.io/package/through2.md) ^3.0.0
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1

## Recent versions

- 1.2.1 (latest) — 2019-01-26
- 1.2.0 — 2018-12-22
- 1.1.1 — 2018-11-23
- 1.1.0 — 2018-11-15
- 1.0.0 — 2018-11-14

## README

For live injection of your script and styles to any page. Use with [chrome extention](https://chrome.google.com/webstore/detail/injector/fopkjckkihccjckhmikeclmkghlipbil?hl=en-GB)

## Usage
```js
const gulp = require('gulp')
const port = 9999
const sender = require('gulp-ws-sender')(port)

gulp.task('style', () => {
  return gulp.src('src/**/*.css')
    // your pipes
    .pipe(sender({ type: 'css' }))
    .pipe(gulp.dest('build'))
})

gulp.task('script', () => {
  return gulp.src('src/**/*.js')
    // your pipes
    .pipe(sender({ type: 'js' }))
    .pipe(gulp.dest('build'))
})
```

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