
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
A simple, generic tool for creating (error) messages
npm install --save errmsg
var errmsg = require('errmsg')
var partial = require('lodash.partial')
console.log(errmsg("$1 $2", "Hello", "World")) // "Hello" "World"
function id(v) {return v}
console.log(errmsg.customFormatter(id, "$1 $2", "Hello", "World")) // Hello World
var errmsgId = partial(errmsg.customFormatter, id);
console.log(errmsgId.customFormatter("$1 $2", "Hello", "World")) // Hello World
var MESSAGES = {
lipsum: "$1 $2 dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
}
var errmsgs = partial(errmsg.lookup, MESSAGES);
console.log(errmsgs("lipsum", "Lorem", "Ipsum"));
var errmsgsId = partial(errmsg.customFormatterLookup, id, MESSAGES);
console.log(errmsgsId("lipsum", "Lorem", "Ipsum"));
Sebastian McKenzie - based on babel-messages
ISC
FAQs
A simple, generic tool for creating (error) messages
The npm package errmsg receives a total of 5 weekly downloads. As such, errmsg popularity was classified as not popular.
We found that errmsg 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.