Comparing version 0.0.4 to 0.0.5
@@ -1,12 +0,10 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.7.1 | ||
module.exports = function(string, size, char) { | ||
var i, pad, _i, _size; | ||
var i, pad, prefix, _i, _ref; | ||
if (char == null) { | ||
char = ' '; | ||
} | ||
if (typeof string === 'number') { | ||
_size = size; | ||
size = string; | ||
string = _size; | ||
prefix = typeof string === 'number'; | ||
if (prefix) { | ||
_ref = [string, size], size = _ref[0], string = _ref[1]; | ||
} | ||
@@ -19,3 +17,3 @@ string = string.toString(); | ||
} | ||
if (_size) { | ||
if (prefix) { | ||
return pad + string; | ||
@@ -22,0 +20,0 @@ } else { |
{ | ||
"name": "pad", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Left and right string padding", | ||
@@ -5,0 +5,0 @@ "author": "David Worms <david@adaltas.com>", |
@@ -0,1 +1,2 @@ | ||
[![Build Status](https://secure.travis-ci.org/wdavidw/node-pad.png)](http://travis-ci.org/wdavidw/node-pad) | ||
@@ -2,0 +3,0 @@ <pre style="font-family:courier"> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
26160
12
61
0
29