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.
custom-util-format
Advanced tools
A customizable version of the util.format()
function from the node.js stdlib.
Create a customized format()
function by passing an object of custom flags. Each key should be a single character flag, and each value a function that formats the argument for that flag. These flags will be merged with the default s
, d
, and j
flags. Pass any falsey value to override them.
const format = require('custom-util-format')({
p: x => `${Math.round(x * 100)}%`
})
console.log(format('msg: %p complete', 0.5));
// => 'msg: 50% complete'
FAQs
Customizable version of node's util.format() function
The npm package custom-util-format receives a total of 176 weekly downloads. As such, custom-util-format popularity was classified as not popular.
We found that custom-util-format 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.