Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

pad

Package Overview
Dependencies
3
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 2.0.0

.npmignore

8

CHANGELOG.md
# Changelog
## v2.0.0
* package: upgrade to CoffeeScript 2
## v1.2.1
* package revers to CoffeeScript 1
## v1.2.0

@@ -5,0 +13,0 @@

7

lib/colors.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.7
// Generated by CoffeeScript 2.0.1
var pad;

@@ -6,6 +6,3 @@

module.exports = function(string, size, options) {
if (options == null) {
options = {};
}
module.exports = function(string, size, options = {}) {
if (typeof options === 'string') {

@@ -12,0 +9,0 @@ options = {

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.7
// Generated by CoffeeScript 2.0.1
var wcwidth;

@@ -6,10 +6,7 @@

module.exports = function(text, length, options) {
var escapecolor, invert, pad, padlength, ref, textnocolors;
if (options == null) {
options = {};
}
module.exports = function(text, length, options = {}) {
var escapecolor, invert, pad, padlength, textnocolors;
invert = typeof text === 'number';
if (invert) {
ref = [text, length], length = ref[0], text = ref[1];
[length, text] = [text, length];
}

@@ -16,0 +13,0 @@ if (typeof options === 'string') {

{
"name": "pad",
"description": "Left and right string padding",
"version": "1.2.1",
"version": "2.0.0",
"author": "David Worms <david@adaltas.com>",

@@ -36,5 +36,4 @@ "contributors": [

"dependencies": {
"coffee-script": "^1.12.7",
"wcwidth": "^1.0.1"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc