@stdlib/string-base-format-tokenize
Advanced tools
Comparing version
@@ -19,3 +19,3 @@ /* | ||
// TypeScript Version: 2.0 | ||
// TypeScript Version: 4.1 | ||
@@ -22,0 +22,0 @@ /** |
{ | ||
"name": "@stdlib/string-base-format-tokenize", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "Tokenize a string into an array of string parts and format identifier objects.", | ||
@@ -41,7 +41,7 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@stdlib/assert-is-array": "^0.0.x", | ||
"@stdlib/bench": "^0.0.x", | ||
"@stdlib/assert-is-array": "^0.0.7", | ||
"@stdlib/bench": "^0.0.12", | ||
"tape": "git+https://github.com/kgryte/tape.git#fix/globby", | ||
"istanbul": "^0.4.1", | ||
"tap-spec": "5.x.x" | ||
"tap-min": "git+https://github.com/Planeshifter/tap-min.git" | ||
}, | ||
@@ -80,5 +80,5 @@ "engines": { | ||
"funding": { | ||
"type": "patreon", | ||
"url": "https://www.patreon.com/athan" | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/stdlib" | ||
} | ||
} |
@@ -21,2 +21,13 @@ <!-- | ||
<details> | ||
<summary> | ||
About stdlib... | ||
</summary> | ||
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p> | ||
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p> | ||
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p> | ||
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p> | ||
</details> | ||
# formatTokenize | ||
@@ -64,9 +75,9 @@ | ||
| property | description | | ||
| --------- | --------------------------------------------------------------------------------------------------- | | ||
| specifier | format specifier (one of 's', 'c', 'd', 'i', 'u', 'b', 'o', 'x', 'X', 'e', 'E', 'f', 'F', 'g', 'G') | | ||
| flags | format flags (string with any of '0', ' ', '+', '-', '#') | | ||
| width | minimum field width (integer or `'*'`) | | ||
| precision | precision (integer or `'*'`) | | ||
| mapping | positional mapping from format specifier to argument index | | ||
| property | description | | ||
| --------- | --------------------------------------------------------------------- | | ||
| specifier | format specifier (single alphabetical character, lower- or uppercase) | | ||
| flags | format flags (string with any of '0', ' ', '+', '-', '#') | | ||
| width | minimum field width (integer or `'*'`) | | ||
| precision | precision (integer or `'*'`) | | ||
| mapping | positional mapping from format specifier to argument index | | ||
@@ -93,3 +104,3 @@ </section> | ||
out = formatTokenize( 'Multiple flags: %#+s' ); | ||
// returns [ 'Foo ', {...} ] | ||
// returns [ 'Multiple flags: ', {...} ] | ||
``` | ||
@@ -135,3 +146,3 @@ | ||
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. | ||
Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. | ||
@@ -149,4 +160,4 @@ </section> | ||
[test-image]: https://github.com/stdlib-js/string-base-format-tokenize/actions/workflows/test.yml/badge.svg?branch=v0.0.4 | ||
[test-url]: https://github.com/stdlib-js/string-base-format-tokenize/actions/workflows/test.yml?query=branch:v0.0.4 | ||
[test-image]: https://github.com/stdlib-js/string-base-format-tokenize/actions/workflows/test.yml/badge.svg?branch=v0.1.0 | ||
[test-url]: https://github.com/stdlib-js/string-base-format-tokenize/actions/workflows/test.yml?query=branch:v0.1.0 | ||
@@ -164,3 +175,3 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-base-format-tokenize/main.svg | ||
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg | ||
[chat-url]: https://gitter.im/stdlib-js/stdlib/ | ||
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im | ||
@@ -167,0 +178,0 @@ [stdlib]: https://github.com/stdlib-js/stdlib |
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
28643
19.46%11
22.22%189
6.18%176
-14.56%