
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
simple-format
Advanced tools
Simple util.format replace that handles multiple arguments
$ npm install --save simple-format
var format = require('simple-format')
format('unicorns', '&', 'rainbows')
//=> unicorns & rainbows
format('%s & %s', 'unicorns', 'rainbows')
//=> unicorns & rainbows
format(messages...)
-> string
Type: string
(variadic)
Strings to format. Operates like util.format
which powers console.log
in Node. If the first message has replacement tokens (e.g. %s), later arguments will be used as replacements. Otherwise, all arguments will be joined with a space.
MIT © Ben Drucker
FAQs
sprintf with multiple arguments
The npm package simple-format receives a total of 865 weekly downloads. As such, simple-format popularity was classified as not popular.
We found that simple-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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.