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.4 to 0.0.5

.travis.yml

14

lib/pad.js

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

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