gulp-displace
find string displace
Last updated 2 years ago by rodey .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-displace 
SYNC missed versions from official npm registry.

gulp-jsminer (javascript压缩)

    const
        gulp         = require('gulp'),
        gulpDisplace = require('../index');
    
    
    gulp.task('default', function(){
    
        gulp.src('assets/a.txt')
            .pipe(gulpDisplace({ search: /(and)/gi, result: function(m, $1){
                console.log(m, $1);
                return '+';
            } }))
            .pipe(gulp.dest('dist'));
    });

options

search String | RegExp; result String | Function

Listen

ISC

Current Tags

  • 1.0.4                                ...           latest (2 years ago)

5 Versions

  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 1
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |