Socket
Socket
Sign inDemoInstall

pad

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pad - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

lib/colors.js

@@ -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"
}
}
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