Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
encoding-plugin
Advanced tools
Take control over the encoding of emitted webpack assets. This can be useful, if the delivering webserver enforces a specific content-type, so that your js-code is not interpreted as utf-8 by the browser.
install module
npm install webpack-encoding-plugin
setup webpack config
const EncodingPlugin = require('webpack-encoding-plugin');
module.exports = {
entry: './entry.js',
output: {
path: '../dist',
filename: 'bundle.js'
},
plugins: [new EncodingPlugin({
encoding: 'iso-8859-1'
})]
};
Additional options:
test
, include
, exclude
RegExp or array of RegExps to filter processed files
(default test
is /(\.js|\.css)($|\?)/i
)
The Plugin uses iconv-lite to handle the encoding. A list of supported encodings can be found here
FAQs
Control Webpack output encoding
The npm package encoding-plugin receives a total of 240 weekly downloads. As such, encoding-plugin popularity was classified as not popular.
We found that encoding-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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.