# gulp-crypto-js

> gulp plugin for crypto-js

Latest version **1.0.0** (published 2017-03-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-crypto-js
pnpm add gulp-crypto-js
yarn add gulp-crypto-js
bun add gulp-crypto-js
```

## 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 | 2017-03-25 |
| First published | 2017-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Axetroy |
| Maintainers | axetroy |

## Links

- npm: https://www.npmjs.com/package/gulp-crypto-js
- Repository: https://github.com/axetroy/gulp-crypto-js
- Homepage: https://github.com/axetroy/gulp-crypto-js#readme
- Issues: https://github.com/axetroy/gulp-crypto-js/issues
- npm.io page: https://npm.io/package/gulp-crypto-js

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) ^2.0.3
- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.9-1

## Recent versions

- 1.0.0 (latest) — 2017-03-25

## README

# gulp-crypto-js

[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/gulp-crypto-js.svg)](https://greenkeeper.io/)

gulp plugin for crypto-js

## Installation

```bash
npm install gulp-crypto-js --save-dev
```

or if you are using **yarn**

```bash
yarn add gulp-crypto-js --dev
```

## Usage

#### Encrypt
```javascript
const cryptoJs =  require('gulp-crypto-js');
gulp.task('encrypt', function () {
  return gulp
    .src([
      path.join('./src','*.js')
    ])
    .pipe(cryptoJs({algorithm: 'AES', action: 'encrypt', key: 'YOUR_PRIVATE_KEY'}))
    .pipe(gulp.dest('./dist'));
});
```

#### Decrypt
```javascript
const cryptoJs =  require('gulp-crypto-js');
gulp.task('decrypt', function () {
  return gulp
    .src([
      path.join('./src','*.js')
    ])
    .pipe(cryptoJs({algorithm: 'AES', action: 'decrypt', key: 'YOUR_PRIVATE_KEY'}))
    .pipe(gulp.dest('./dist'));
});
```

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