在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mikrofusion/gulp-obfuscate开源软件地址(OpenSource Url):https://github.com/mikrofusion/gulp-obfuscate开源编程语言(OpenSource Language):JavaScript 59.7%开源软件介绍(OpenSource Introduction):gulp-obfuscate
Install$ npm install --save-dev gulp-obfuscate Usagevar gulp = require('gulp');
var obfuscate = require('gulp-obfuscate');
gulp.task('default', function () {
return gulp.src('test.js')
.pipe(obfuscate());
}); Examplegulp-obfuscate obfuscates your javascript code so that it looks like this:
and this:
-- hereSee a working example-- APIobfuscate(options)options.replaceMethodType: Default: Example: obfuscate = require('gulp-obfuscate');
...
.pipe(obfuscate({ replaceMethod: obfuscate.ZALGO }))
... Note: Both obfuscation methods create valid javascript variables per ECMAScript 5.1. That said, there is no guarantee that older browsers can handle the mighty power of ZALGO. options.excludeType: Default: Values: Regular expressions to be globally excluded from obfuscation. Current defaults include javascript reserved words. Custom exclusions are often needed for variables or functions that need to stay named the same (such as interfaces to other code). Note: defaults will be automatically appended to any options.exclude variables provided. See gulp-regex-replace documentation for more details. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论