Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
described-i18n-loader
Advanced tools
Load i18n json files with key value pairs while stripping the 'desc' key from all subkeys. eg: key = 'conf.title', value = { text: "Configuration", desc: "Title for config screen" }
A webpack 1 & 2 loader for i18n json bundles that look like this:
{
"conf": {
"title": {
"desc": "Title for config screen",
"text": "Configuration"
}
},
"app": {
"title": {
"desc": "The app window title",
"text": "MyApp"
}
},
"nav": {
"button": {
"home": {
"desc": "Navbar button for the app's homescreen",
"text": "Home"
},
"about": {
"desc": "Navbar button for the app's about screen",
"text": "About"
}
}
},
"another": {
"pure": {
"key": "Pure key"
}
}
}
The loader will parse the json and replace the objects with their text
property value or leave the string like in another.pure.key
.
The output looks like this (just minified):
(node)
module.exports = {
"conf.title": "Configuration",
"app.title": "MyApp",
"nav.button.home": "Home",
"nav.button.about": "About",
"another.pure.key": "Pure Key"
};
(es6)
export default {
"conf.title": "Configuration",
"app.title": "MyApp",
"nav.button.home": "Home",
"nav.button.about": "About",
"another.pure.key": "Pure Key"
}
forceModuleExports
: force node style module DEFAULT - webpack 1: true, webpack 2: false
FAQs
Load i18n json files with key value pairs while stripping the 'desc' key from all subkeys. eg: key = 'conf.title', value = { text: "Configuration", desc: "Title for config screen" }
The npm package described-i18n-loader receives a total of 0 weekly downloads. As such, described-i18n-loader popularity was classified as not popular.
We found that described-i18n-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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.