
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
gulp-js2php
Advanced tools
npm install --save-dev gulp-js2php
gulpfile.js
配置:
const js2php = require('gulp-js2php').js2php;
const getUnescapePhp = require('gulp-js2php').getUnescapePhp;
gulp.src(['./test/test.js'])
.pipe(js2php())
.pipe(gulp.dest('./test/dist'))
.pipe(getUnescapePhp({path: './test/dist'}))
ps: 由于是把js文件转换成php文件,是经过一定的编码,如果再php文件中想要使用转义后的js的内容,需要通过getUnescapePhp生成unescape.php的解码文件,进行解码; getUnescapePhp中的需要传入产生unescape.php的目录
FAQs
```bash npm install --save-dev gulp-js2php ```
We found that gulp-js2php demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.