gulp-camelcase
v2.0.1
Published
Just replaces the string in the stream 'class-name' to 'className'. Great for converting svg attributes and use in React projects.
Downloads
10
Maintainers
Readme
gulp-camelcase
CamelCase plugin for Gulp.
Install
npm install gulp-camelcase --save-dev
Basic Usage
'use strict';
var gulp = require('gulp');
var camelcase = require('gulp-camelcase');
var svgmin = require('gulp-svgmin');
var html2jade = require('gulp-html2jade');
gulp.task('camelcase', function () {
return gulp.src('./icons/**/*.svg')
.pipe(svgmin())
.pipe(camelcase())
.pipe(html2jade({
bodyless: true
}))
.pipe(gulp.dest('./react'));
});