
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
js-create-includes-webpack-plugin
Advanced tools
Making WebPack includes creating with JS createElement
The simple plug-in which allows you to run cordova/webpack app.
The WebPack plugin for convert HTML script assignment like:
<script src="/bundle.js"></script>
to JS creation of a DOM-element:
<script>
const bundleScript = document.createElement('script');
bundleScript.type = 'text/javascript';
bundleScript.async = true;
bundleScript.src = 'bundle.js';
document.body.appendChild(bundleScript);
</script>
Requirements:
- webpack
- html-webpack-plugin
$ npm i js-create-includes-webpack-plugin -D
Add to you WebPack config file the next:
const JSCreateIncludesWebpackPlugin = require('js-create-includes-webpack-plugin')
// ...
module.exports = {
plugins: [
// Place it after HtmlWebpackPlugin
new JSCreateIncludesWebpackPlugin(),
],
}
Author: Denis Efremov @piterden
FAQs
Making WebPack includes creating with JS createElement
The npm package js-create-includes-webpack-plugin receives a total of 13 weekly downloads. As such, js-create-includes-webpack-plugin popularity was classified as not popular.
We found that js-create-includes-webpack-plugin 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.