Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

left-pad

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

left-pad - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

6

index.js
module.exports = leftpad;
function leftpad (str, len) {
function leftpad (str, len, ch) {
var i = -1;
ch || (ch = ' ');
len = len - str.length;
while (++i < len) {
str = ' ' + str;
str = ch + str;
}

@@ -10,0 +12,0 @@

{
"name": "left-pad",
"version": "0.0.0",
"version": "0.0.1",
"description": "String left pad",

@@ -20,3 +20,3 @@ "main": "index.js",

"repository": {
"url": "git@github.com:azer\/left-pad.git",
"url": "git@github.com:azer/left-pad.git",
"type": "git"

@@ -23,0 +23,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