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 2.2.0 to 2.2.1

4

CHANGELOG.md
# Changelog
## Version 2.2.1
* readme: es5
## Version 2.2.0

@@ -5,0 +9,0 @@

2

package.json
{
"name": "pad",
"description": "Left and right string padding",
"version": "2.2.0",
"version": "2.2.1",
"author": "David Worms <david@adaltas.com>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -13,2 +13,3 @@

```javascript
const pad = require('pad')
pad('pad', 5) // "pad "

@@ -23,2 +24,10 @@ pad(5, 'pad') // " pad"

This package is written for ES6 supported by Node.js version 7.5 and above. For
older browsers or older versions of Node.js, use the modules inside "./lib/es5".
```javascript
const pad = require('pad/lib/es5')
pad('pad', 5) // "pad "
```
## Options

@@ -25,0 +34,0 @@

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