@stdlib/string-for-each 0.1.0 → 0.2.1

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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
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 &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
209
+ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
204
210
 
205
211
  </section>
206
212
 
@@ -213,8 +219,8 @@ Copyright &copy; 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.1.0
217
- [test-url]: https://github.com/stdlib-js/string-for-each/actions/workflows/test.yml?query=branch:v0.1.0
222
+ [test-image]: https://github.com/stdlib-js/string-for-each/actions/workflows/test.yml/badge.svg?branch=v0.2.1
223
+ [test-url]: https://github.com/stdlib-js/string-for-each/actions/workflows/test.yml?query=branch:v0.2.1
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 &copy; 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
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/string-for-each",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Invoke a function for each character in a string.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,19 +15,12 @@
15
15
  ],
16
16
  "main": "./lib",
17
17
  "directories": {
18
- "benchmark": "./benchmark",
19
18
  "doc": "./docs",
20
- "example": "./examples",
21
19
  "lib": "./lib",
22
- "test": "./test"
20
+ "dist": "./dist"
23
21
  },
24
22
  "types": "./docs/types",
25
- "scripts": {
26
- "test": "make test",
27
- "test-cov": "make test-cov",
28
- "examples": "make examples",
29
- "benchmark": "make benchmark"
30
- },
23
+ "scripts": {},
31
24
  "homepage": "https://stdlib.io",
32
25
  "repository": {
33
26
  "type": "git",
@@ -37,24 +30,18 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/array-base-assert-contains": "^0.1.0",
41
- "@stdlib/assert-has-own-property": "^0.1.0",
42
- "@stdlib/assert-is-function": "^0.1.0",
43
- "@stdlib/assert-is-plain-object": "^0.1.0",
44
- "@stdlib/assert-is-string": "^0.1.0",
45
- "@stdlib/string-base-for-each": "^0.1.0",
46
- "@stdlib/string-base-for-each-code-point": "^0.1.0",
47
- "@stdlib/string-base-for-each-grapheme-cluster": "^0.1.0",
48
- "@stdlib/string-format": "^0.1.0",
49
- "@stdlib/error-tools-fmtprodmsg": "^0.1.0"
50
- },
51
- "devDependencies": {
52
- "@stdlib/bench": "^0.1.0",
53
- "@stdlib/utils-noop": "^0.1.0",
54
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
55
- "istanbul": "^0.4.1",
56
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
33
+ "@stdlib/array-base-assert-contains": "^0.2.1",
34
+ "@stdlib/assert-has-own-property": "^0.2.1",
35
+ "@stdlib/assert-is-function": "^0.2.1",
36
+ "@stdlib/assert-is-plain-object": "^0.2.1",
37
+ "@stdlib/assert-is-string": "^0.2.1",
38
+ "@stdlib/string-base-for-each": "^0.2.1",
39
+ "@stdlib/string-base-for-each-code-point": "^0.2.1",
40
+ "@stdlib/string-base-for-each-grapheme-cluster": "^0.2.1",
41
+ "@stdlib/string-format": "^0.2.1",
42
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.1"
57
43
  },
44
+ "devDependencies": {},
58
45
  "engines": {
59
46
  "node": ">=0.10.0",
60
47
  "npm": ">2.7.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