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

@olton/string

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@olton/string - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

__html__/index.html

4

dist/string.js

@@ -435,3 +435,3 @@ /**

let len = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
return _pad(s, len, pad, true);
return _pad(s, pad, len, true);
};

@@ -441,3 +441,3 @@ const rpad = function (s) {

let len = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
return _pad(s, len, pad, false);
return _pad(s, pad, len, false);
};

@@ -444,0 +444,0 @@ const pad = function (s) {

{
"name": "@olton/string",
"version": "0.4.0",
"version": "0.4.1",
"description": "String is a minimalist JavaScript library for manipulating with strings for node and modern browsers with a comfortable modern API.",

@@ -5,0 +5,0 @@ "main": "dist/string.js",

@@ -29,7 +29,7 @@ import {toStr} from "../helpers/string/to_string"

export const lpad = (s, pad = ' ', len = 0) => {
return _pad(s, len, pad, true)
return _pad(s, pad, len, true)
}
export const rpad = (s, pad = ' ', len = 0) => {
return _pad(s, len, pad, false)
return _pad(s, pad, len, false)
}

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