@stdlib/string-for-each 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +19 -4
- package/SECURITY.md +5 -0
- package/package.json +15 -14
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ The function supports the following options:
|
|
|
114
114
|
- `'grapheme'`: grapheme clusters. Appropriate for strings containing visual characters which can span multiple Unicode code points (e.g., emoji).
|
|
115
115
|
- `'code_point'`: Unicode code points. Appropriate for strings containing visual characters which are comprised of more than one Unicode code unit (e.g., ideographic symbols and punctuation and mathematical alphanumerics).
|
|
116
116
|
- `'code_unit'`: UTF-16 code units. Appropriate for strings containing visual characters drawn from the basic multilingual plane (BMP) (e.g., common characters, such as those from the Latin, Greek, and Cyrillic alphabets).
|
|
117
|
-
|
|
117
|
+
|
|
118
118
|
Default: `'grapheme'`.
|
|
119
119
|
|
|
120
120
|
</section>
|
|
@@ -170,6 +170,12 @@ forEach( '\uD834\uDD1E', log );
|
|
|
170
170
|
|
|
171
171
|
<section class="related">
|
|
172
172
|
|
|
173
|
+
* * *
|
|
174
|
+
|
|
175
|
+
## See Also
|
|
176
|
+
|
|
177
|
+
- <span class="package-name">[`@stdlib/utils-for-each`][@stdlib/utils/for-each]</span><span class="delimiter">: </span><span class="description">invoke a function for each element in a collection.</span>
|
|
178
|
+
|
|
173
179
|
</section>
|
|
174
180
|
|
|
175
181
|
<!-- /.related -->
|
|
@@ -200,7 +206,7 @@ See [LICENSE][stdlib-license].
|
|
|
200
206
|
|
|
201
207
|
## Copyright
|
|
202
208
|
|
|
203
|
-
Copyright © 2016-
|
|
209
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
204
210
|
|
|
205
211
|
</section>
|
|
206
212
|
|
|
@@ -213,8 +219,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
213
219
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/string-for-each.svg
|
|
214
220
|
[npm-url]: https://npmjs.org/package/@stdlib/string-for-each
|
|
215
221
|
|
|
216
|
-
[test-image]: https://github.com/stdlib-js/string-for-each/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
217
|
-
[test-url]: https://github.com/stdlib-js/string-for-each/actions/workflows/test.yml?query=branch:v0.
|
|
222
|
+
[test-image]: https://github.com/stdlib-js/string-for-each/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
223
|
+
[test-url]: https://github.com/stdlib-js/string-for-each/actions/workflows/test.yml?query=branch:v0.2.0
|
|
218
224
|
|
|
219
225
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-for-each/main.svg
|
|
220
226
|
[coverage-url]: https://codecov.io/github/stdlib-js/string-for-each?branch=main
|
|
@@ -237,12 +243,21 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
237
243
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
238
244
|
|
|
239
245
|
[deno-url]: https://github.com/stdlib-js/string-for-each/tree/deno
|
|
246
|
+
[deno-readme]: https://github.com/stdlib-js/string-for-each/blob/deno/README.md
|
|
240
247
|
[umd-url]: https://github.com/stdlib-js/string-for-each/tree/umd
|
|
248
|
+
[umd-readme]: https://github.com/stdlib-js/string-for-each/blob/umd/README.md
|
|
241
249
|
[esm-url]: https://github.com/stdlib-js/string-for-each/tree/esm
|
|
250
|
+
[esm-readme]: https://github.com/stdlib-js/string-for-each/blob/esm/README.md
|
|
242
251
|
[branches-url]: https://github.com/stdlib-js/string-for-each/blob/main/branches.md
|
|
243
252
|
|
|
244
253
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/string-for-each/main/LICENSE
|
|
245
254
|
|
|
255
|
+
<!-- <related-links> -->
|
|
256
|
+
|
|
257
|
+
[@stdlib/utils/for-each]: https://www.npmjs.com/package/@stdlib/utils-for-each
|
|
258
|
+
|
|
259
|
+
<!-- </related-links> -->
|
|
260
|
+
|
|
246
261
|
</section>
|
|
247
262
|
|
|
248
263
|
<!-- /.links -->
|
package/SECURITY.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/string-for-each",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Invoke a function for each character in a string.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -37,23 +37,24 @@
|
|
|
37
37
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@stdlib/array-base-assert-contains": "^0.
|
|
41
|
-
"@stdlib/assert-has-own-property": "^0.
|
|
42
|
-
"@stdlib/assert-is-function": "^0.
|
|
43
|
-
"@stdlib/assert-is-plain-object": "^0.
|
|
44
|
-
"@stdlib/assert-is-string": "^0.
|
|
45
|
-
"@stdlib/string-base-for-each": "^0.
|
|
46
|
-
"@stdlib/string-base-for-each-code-point": "^0.
|
|
47
|
-
"@stdlib/string-base-for-each-grapheme-cluster": "^0.
|
|
48
|
-
"@stdlib/string-format": "^0.
|
|
49
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.
|
|
40
|
+
"@stdlib/array-base-assert-contains": "^0.2.0",
|
|
41
|
+
"@stdlib/assert-has-own-property": "^0.2.0",
|
|
42
|
+
"@stdlib/assert-is-function": "^0.2.0",
|
|
43
|
+
"@stdlib/assert-is-plain-object": "^0.2.0",
|
|
44
|
+
"@stdlib/assert-is-string": "^0.2.0",
|
|
45
|
+
"@stdlib/string-base-for-each": "^0.2.0",
|
|
46
|
+
"@stdlib/string-base-for-each-code-point": "^0.2.0",
|
|
47
|
+
"@stdlib/string-base-for-each-grapheme-cluster": "^0.2.0",
|
|
48
|
+
"@stdlib/string-format": "^0.2.0",
|
|
49
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@stdlib/
|
|
53
|
-
"@stdlib/utils-noop": "^0.1.0",
|
|
52
|
+
"@stdlib/utils-noop": "^0.2.0",
|
|
54
53
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
55
54
|
"istanbul": "^0.4.1",
|
|
56
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
55
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
56
|
+
"@stdlib/bench-harness": "^0.2.0",
|
|
57
|
+
"@stdlib/bench": "^0.3.1"
|
|
57
58
|
},
|
|
58
59
|
"engines": {
|
|
59
60
|
"node": ">=0.10.0",
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|