Socket
Socket
Sign inDemoInstall

extsprintf

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.3.0

9

lib/extsprintf.js

@@ -13,2 +13,3 @@ /*

exports.printf = jsPrintf;
exports.fprintf = jsFprintf;

@@ -138,5 +139,11 @@ /*

var args = Array.prototype.slice.call(arguments);
process.stdout.write(jsSprintf.apply(this, args));
args.unshift(process.stdout);
jsFprintf.apply(null, args);
}
function jsFprintf(stream) {
var args = Array.prototype.slice.call(arguments, 1);
return (stream.write(jsSprintf.apply(this, args)));
}
function doPad(chr, width, left, str)

@@ -143,0 +150,0 @@ {

2

package.json
{
"name": "extsprintf",
"version": "1.2.1",
"version": "1.3.0",
"description": "extended POSIX-style sprintf",

@@ -5,0 +5,0 @@ "main": "./lib/extsprintf.js",

@@ -40,1 +40,8 @@ # extsprintf: extended POSIX-style sprintf

hello world
# Also supported
**printf**: same args as sprintf, but prints the result to stdout
**fprintf**: same args as sprintf, preceded by a Node stream. Prints the result
to the given stream.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc