New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lpad-align

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lpad-align - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

license

11

index.js

@@ -6,13 +6,4 @@ 'use strict';

/**
* Left pad a string to align with the longest string in an array
*
* @param {String} str
* @param {Array} arr
* @param {Number} indent
* @api public
*/
module.exports = function (str, arr, indent) {
if (!arr || !Array.isArray(arr)) {
if (!Array.isArray(arr)) {
throw new Error('`arr` is required');

@@ -19,0 +10,0 @@ }

{
"name": "lpad-align",
"version": "1.0.2",
"version": "1.0.3",
"description": "Left pad a string to align with the longest string in an array",

@@ -27,3 +27,3 @@ "license": "MIT",

"dependencies": {
"longest": "^0.2.1",
"longest": "^1.0.0",
"lpad": "^1.0.0"

@@ -30,0 +30,0 @@ },

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