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.
i18n-ini-loader
Advanced tools
Webpack I18n loader based on .ini files.
npm install i18n-ini-loader
Input:
messages.ini
[welcome]
en=Welcome, ${user}!
de=Willkommen, ${user}!
[niceDay]
en=Have a nice day!
de=Hab einen schönen Tag!
Config:
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.ini$/,
use: [
{
loader: 'i18n-ini-loader',
options: {
language: 'de'
}
}
]
}
]
}
}
// Note: Since the resulting output of the `i18n-ini-loader`
// uses ES6 template strings and arrow functions (see below),
// you may want to chain the `babel-loader` for ES5 support.
// Check out the `/example` directory for an example config.
Output:
module.exports = {
welcome: (user) => `Willkommen, ${user}!`,
niceDay: 'Hab einen schönen Tag!'
}
Usage:
Welcome.jsx
import { welcome, niceDay } from './messages.ini'
export default function Welcome({ user }) {
return (
<div>
<h1>{welcome(user)}</h1>
<span>{niceDay}</span>
</div>
)
}
WTFPL – Do What the F*ck You Want to Public License.
Made with :heart: by @MarkTiedemann.
FAQs
Webpack I18n loader based on .ini files.
The npm package i18n-ini-loader receives a total of 0 weekly downloads. As such, i18n-ini-loader popularity was classified as not popular.
We found that i18n-ini-loader 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.