Socket
Book a DemoInstallSign in
Socket

gulp-jstransformer

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-jstransformer

Gulp support for JSTransformers

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
1
-50%
Maintainers
6
Weekly downloads
 
Created
Source

gulp-jstransformer The MIT License

Gulp support for JSTransformers

travis build status coverage status dependency status npmjs.com

Install

npm install gulp-jstransformer --save

Usage

For more use-cases see the tests in test folder or see the JSTransformer API for more details.

'use strict';

var gulp = require('gulp');
var rename = require('gulp-rename');
var jstransformer = require('gulp-jstransformer');

var options = {
  engine: 'octet'
};
var locals = {
  hello: 'Hello'
};

gulp.task('default', function () {
  return gulp.src('test/*.octet')
    .pipe(jstransformer(options, locals))
    .pipe(rename(function (path) {
      path.basename = 'expected'
      path.extname = ".html"
    }))
    .pipe(gulp.dest('dest/'));
});

or just git clone this repository and run gulp

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

License

The MIT License

Keywords

jstransformer

FAQs

Package last updated on 24 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts