Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
gulp-html2kissy
Advanced tools
html2kissy plugin for gulp
First, install gulp-html2kissy
as a development dependency:
npm install --save-dev gulp-ejs
Then, add it to your gulpfile.js
:
var html2kissy = require("gulp-html2kissy");
gulp.src("./templates/*.html")
.pipe(html2kissy({
package: "udata/views"
}))
.pipe(gulp.dest("./udata/views"));
If you want to use gulp-html2kissy
in a watch/livereload task, you may want to avoid gulp exiting on error when, for instance, a partial file is ENOENT
.
Here's an example on how to make it work:
var html2kissy = require('gulp-html2kissy');
var gutil = require('gulp-util');
gulp.src('./templates/*.html')
.pipe(html2kissy({
package: "udata/views"
}).on('error', gutil.log))
.pipe(gulp.dest('./udata/views'));
This will make gulp log the error and continue normal execution.
Type: hash
Default: {}
Type: hash
Default: {ext: '.html'}
A hash object to configure the plugin.
Type: String
Default: .html
Defines the default file extension that will be appended to the filename.
FAQs
transform html templates to kissy module.
The npm package gulp-html2kissy receives a total of 1 weekly downloads. As such, gulp-html2kissy popularity was classified as not popular.
We found that gulp-html2kissy 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.