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.0 to 1.0.1

4

index.js
'use strict';
var longest = require('longest');
var lpad = require('lpad');
var max = require('max-component');

@@ -16,4 +16,4 @@ /**

module.exports = function (str, arr, indent) {
var len = max(arr, '.length');
var len = longest(arr).length;
return lpad(str, new Array(indent + 1 + len - str.length).join(' '));
};
{
"name": "lpad-align",
"version": "1.0.0",
"version": "1.0.1",
"description": "Left pad a string to align with the longest string in an array",

@@ -22,6 +22,9 @@ "license": "MIT",

"keywords": [
"align",
"indent",
"lpad"
],
"dependencies": {
"lpad": "^1.0.0",
"max-component": "^1.0.0"
"longest": "^0.2.1",
"lpad": "^1.0.0"
},

@@ -28,0 +31,0 @@ "devDependencies": {

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