Socket
Socket
Sign inDemoInstall

left-pad

Package Overview
Dependencies
Maintainers
3
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 1.1.1 to 1.1.2

2

package.json
{
"name": "left-pad",
"version": "1.1.1",
"version": "1.1.2",
"description": "String left pad",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,3 +18,3 @@ ## left-pad

```js
leftPad = require('left-pad')
const leftPad = require('left-pad')

@@ -27,3 +27,3 @@ leftPad('foo', 5)

leftPad(1, 2, 0)
leftPad(1, 2, '0')
// => "01"

@@ -35,3 +35,5 @@

**NOTE:** The third argument should be a single `char`. However the module doesn't throw an error if you supply more than one `char`s. See [#28](https://github.com/stevemao/left-pad/pull/28).
[travis-image]: https://travis-ci.org/stevemao/left-pad.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/left-pad
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc