New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@stdlib/string-format

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/string-format - npm Package Compare versions

Comparing version
0.2.2
to
0.2.3
+1
-1
docs/types/index.d.ts

@@ -25,3 +25,3 @@ /*

* @param str - input string
* @param ...args - variable values
* @param args - variable values
* @throws invalid flags

@@ -28,0 +28,0 @@ * @returns formatted string

{
"name": "@stdlib/string-format",
"version": "0.2.2",
"version": "0.2.3",
"description": "Insert supplied variable values into a format string.",

@@ -33,4 +33,4 @@ "license": "Apache-2.0",

"dependencies": {
"@stdlib/string-base-format-interpolate": "^0.2.1",
"@stdlib/string-base-format-tokenize": "^0.2.2"
"@stdlib/string-base-format-interpolate": "^0.2.3",
"@stdlib/string-base-format-tokenize": "^0.2.4"
},

@@ -37,0 +37,0 @@ "devDependencies": {},

+22
-22

@@ -100,17 +100,17 @@ <!--

| type | description | example |
| ---- | ---------------------------------- | ------------ |
| s | string | beep boop |
| c | character | a |
| d, i | signed decimal integer | -12 |
| u | unsigned decimal integer | 390 |
| b | unsigned binary integer | 11011011 |
| o | unsigned octal integer | 510 |
| x | unsigned hexadecimal (lowercase) | 7b |
| X | unsigned hexadecimal (uppercase) | 7B |
| f, F | decimal floating point | 390.24 |
| e | scientific notation (lowercase) | 3.9e+1 |
| E | scientific notation (uppercase) | 3.9E+1 |
| g | shortest representation (`e`/`f`) | 3.9 |
| G | shortest representation (`E`/`F`) | 3.9 |
| type | description | example |
| ---- | --------------------------------- | --------- |
| s | string | beep boop |
| c | character | a |
| d, i | signed decimal integer | -12 |
| u | unsigned decimal integer | 390 |
| b | unsigned binary integer | 11011011 |
| o | unsigned octal integer | 510 |
| x | unsigned hexadecimal (lowercase) | 7b |
| X | unsigned hexadecimal (uppercase) | 7B |
| f, F | decimal floating point | 390.24 |
| e | scientific notation (lowercase) | 3.9e+1 |
| E | scientific notation (uppercase) | 3.9E+1 |
| g | shortest representation (`e`/`f`) | 3.9 |
| G | shortest representation (`E`/`F`) | 3.9 |

@@ -208,4 +208,4 @@ ```javascript

- For floating point specifiers (`f`, `F`, `e`, `E`), the `precision` specifies the number of digits after the decimal point to be written to the output (by default, this is `6`).
- For `g` and `G` specifiers, the `precision` specifies the maximum number of significant digits to be written to the output.
- For integer specifiers (`d`, `i`, `u`, `b`, `o`, `x`, `X`), the `precision` specifies the minimum number of digits to be written to the output. If the value to be written is shorter than this number, the result is padded with zeros on the left. The value is not truncated even if the result is longer. For
- For `g` and `G` specifiers, the `precision` specifies the maximum number of significant digits to be written to the output.
- For integer specifiers (`d`, `i`, `u`, `b`, `o`, `x`, `X`), the `precision` specifies the minimum number of digits to be written to the output. If the value to be written is shorter than this number, the result is padded with zeros on the left. The value is not truncated even if the result is longer.

@@ -295,3 +295,3 @@ Alternatively, the `precision` may be specified as an asterisk character (`*`), in which case the argument preceding the conversion specification is used as the minimum number of digits.

Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].

@@ -309,4 +309,4 @@ </section>

[test-image]: https://github.com/stdlib-js/string-format/actions/workflows/test.yml/badge.svg?branch=v0.2.2
[test-url]: https://github.com/stdlib-js/string-format/actions/workflows/test.yml?query=branch:v0.2.2
[test-image]: https://github.com/stdlib-js/string-format/actions/workflows/test.yml/badge.svg?branch=v0.2.3
[test-url]: https://github.com/stdlib-js/string-format/actions/workflows/test.yml?query=branch:v0.2.3

@@ -323,4 +323,4 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-format/main.svg

[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
[chat-url]: https://stdlib.zulipchat.com

@@ -327,0 +327,0 @@ [stdlib]: https://github.com/stdlib-js/stdlib

Sorry, the diff of this file is not supported yet