Comparing version 0.0.8 to 0.0.9
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.7.1 | ||
// Generated by CoffeeScript 1.9.3 | ||
var pad; | ||
@@ -3,0 +3,0 @@ |
@@ -1,4 +0,4 @@ | ||
// Generated by CoffeeScript 1.7.1 | ||
// Generated by CoffeeScript 1.9.3 | ||
module.exports = function(string, size, options) { | ||
var escapecolor, i, pad, prefix, _i, _ref; | ||
var escapecolor, i, j, pad, prefix, ref, ref1; | ||
if (options == null) { | ||
@@ -9,3 +9,3 @@ options = {}; | ||
if (prefix) { | ||
_ref = [string, size], size = _ref[0], string = _ref[1]; | ||
ref = [string, size], size = ref[0], string = ref[1]; | ||
} | ||
@@ -27,3 +27,3 @@ if (typeof options === 'string') { | ||
size = size - string.length; | ||
for (i = _i = 0; 0 <= size ? _i < size : _i > size; i = 0 <= size ? ++_i : --_i) { | ||
for (i = j = 0, ref1 = size; 0 <= ref1 ? j < ref1 : j > ref1; i = 0 <= ref1 ? ++j : --j) { | ||
pad += options.char; | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "pad", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Left and right string padding", | ||
"author": "David Worms <david@adaltas.com>", | ||
"licenses": "BSD-3-Clause", | ||
"contributors": [ | ||
@@ -10,5 +11,5 @@ { "name": "David Worms", "email": "david@adaltas.com" } | ||
"devDependencies": { | ||
"mocha": "latest", | ||
"coffee-script": "latest", | ||
"should": "latest" | ||
"mocha": "2.2.5", | ||
"coffee-script": "1.9.3", | ||
"should": "6.0.3" | ||
}, | ||
@@ -25,4 +26,6 @@ "engines": { | ||
"scripts": { | ||
"test": "make test" | ||
"coffee": "./node_modules/.bin/coffee -b -o lib src", | ||
"pretest": "./node_modules/.bin/coffee -b -o lib src", | ||
"test": "./node_modules/.bin/mocha --compilers coffee:coffee-script/register --reporter dot" | ||
} | ||
} |
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
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
5502
1