Socket
Socket
Sign inDemoInstall

printf

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

printf - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

5

CHANGELOG.md
# Changelog
## Version 0.5.3
* string: fix maximum output length
* package: update author url
## Version 0.5.2

@@ -5,0 +10,0 @@

4

lib/printf.js

@@ -284,3 +284,2 @@

this.fitField(token);
str += '' + token.arg;

@@ -439,3 +438,3 @@ }

if(token.maxWidth >= 0 && token.arg.length > token.maxWidth){
return token.arg.substring(0, token.maxWidth);
token.arg = token.arg.substring(0, token.maxWidth);
}

@@ -461,3 +460,2 @@ if(token.zeroPad){

module.exports = function(){

@@ -464,0 +462,0 @@ var args = Array.prototype.slice.call(arguments),

{
"name": "printf",
"version": "0.5.2",
"version": "0.5.3",
"description": "Full implementation of the `printf` family in pure JS.",

@@ -15,6 +15,4 @@ "keywords": [

"license": "MIT",
"author": "David Worms <david@adaltas.com>",
"maintainers": [
"David Worms <david@adaltas.com>"
],
"author": "David Worms <david@adaltas.com> (https://www.adaltas.com)",
"maintainers": [],
"contributors": [

@@ -27,2 +25,15 @@ "David Worms <david@adaltas.com>",

],
"coffeelintConfig": {
"indentation": {
"level": "error",
"value": 2
},
"line_endings": {
"level": "error",
"value": "unix"
},
"max_line_length": {
"level": "ignore"
}
},
"main": "./lib/printf",

@@ -29,0 +40,0 @@ "types": "./lib/printf.d.ts",

@@ -148,3 +148,3 @@ [![Build Status](https://secure.travis-ci.org/adaltas/node-printf.svg)](http://travis-ci.org/adaltas/node-printf)

Lenght and precision can now be variable:
Length and precision can now be variable:

@@ -151,0 +151,0 @@ ``` javascript

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc