@stdlib/string-left-pad
Advanced tools
+18
-4
@@ -1,5 +0,19 @@ | ||
| "use strict";var s=function(i,r){return function(){return r||i((r={exports:{}}).exports,r),r.exports}};var u=s(function(w,a){ | ||
| var m=require('@stdlib/assert-is-nonnegative-integer/dist').isPrimitive,n=require('@stdlib/assert-is-string/dist').isPrimitive,t=require('@stdlib/error-tools-fmtprodmsg/dist'),o=require('@stdlib/constants-float64-max-safe-integer/dist'),v=require('@stdlib/string-base-left-pad/dist');function l(i,r,g){var e;if(!n(i))throw new TypeError(t('1Ol3F',i));if(!m(r))throw new TypeError(t('1Ol3X',r));if(arguments.length>2){if(e=g,!n(e))throw new TypeError(t('1OlAO',e));if(e.length===0)throw new RangeError(t('1Ol1W'))}else e=" ";if(r>o)throw new RangeError(t('1OlAP',r));return v(i,r,e)}a.exports=l | ||
| });var d=u();module.exports=d; | ||
| /** @license Apache-2.0 */ | ||
| "use strict";var s=function(i,r){return function(){return r||i((r={exports:{}}).exports,r),r.exports}};var u=s(function(w,a){"use strict";var m=require("@stdlib/assert-is-nonnegative-integer").isPrimitive,n=require("@stdlib/assert-is-string").isPrimitive,t=require("@stdlib/string-format"),o=require("@stdlib/constants-float64-max-safe-integer"),v=require("@stdlib/string-base-left-pad");function l(i,r,g){var e;if(!n(i))throw new TypeError(t("invalid argument. First argument must be a string. Value: `%s`.",i));if(!m(r))throw new TypeError(t("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",r));if(arguments.length>2){if(e=g,!n(e))throw new TypeError(t("invalid argument. Third argument must be a string. Value: `%s`.",e));if(e.length===0)throw new RangeError("invalid argument. Third argument must not be an empty string.")}else e=" ";if(r>o)throw new RangeError(t("invalid argument. Output string length exceeds maximum allowed string length. Value: `%u`.",r));return v(i,r,e)}a.exports=l});var d=u();module.exports=d; | ||
| /** | ||
| * @license Apache-2.0 | ||
| * | ||
| * Copyright (c) 2018 The Stdlib Authors. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| //# sourceMappingURL=index.js.map |
+6
-5
| { | ||
| "name": "@stdlib/string-left-pad", | ||
| "version": "0.2.1", | ||
| "version": "0.2.2", | ||
| "description": "Left pad a string.", | ||
@@ -33,7 +33,8 @@ "license": "Apache-2.0", | ||
| "dependencies": { | ||
| "@stdlib/assert-is-nonnegative-integer": "^0.2.1", | ||
| "@stdlib/assert-is-string": "^0.2.1", | ||
| "@stdlib/constants-float64-max-safe-integer": "^0.2.1", | ||
| "@stdlib/assert-is-nonnegative-integer": "^0.2.2", | ||
| "@stdlib/assert-is-string": "^0.2.2", | ||
| "@stdlib/constants-float64-max-safe-integer": "^0.2.2", | ||
| "@stdlib/string-base-left-pad": "^0.2.1", | ||
| "@stdlib/string-format": "^0.2.1" | ||
| "@stdlib/string-format": "^0.2.2", | ||
| "@stdlib/error-tools-fmtprodmsg": "^0.2.2" | ||
| }, | ||
@@ -40,0 +41,0 @@ "devDependencies": {}, |
+2
-2
@@ -198,4 +198,4 @@ <!-- | ||
| [test-image]: https://github.com/stdlib-js/string-left-pad/actions/workflows/test.yml/badge.svg?branch=v0.2.1 | ||
| [test-url]: https://github.com/stdlib-js/string-left-pad/actions/workflows/test.yml?query=branch:v0.2.1 | ||
| [test-image]: https://github.com/stdlib-js/string-left-pad/actions/workflows/test.yml/badge.svg?branch=v0.2.2 | ||
| [test-url]: https://github.com/stdlib-js/string-left-pad/actions/workflows/test.yml?query=branch:v0.2.2 | ||
@@ -202,0 +202,0 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-left-pad/main.svg |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
32583
2.97%185
8.82%6
20%