@stdlib/string-first 0.2.0 → 0.2.2
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/README.md +5 -2
- package/package.json +14 -25
package/README.md
CHANGED
|
@@ -146,6 +146,7 @@ str = first( '🐶🐮🐷🐰🐸', 10 );
|
|
|
146
146
|
|
|
147
147
|
- <span class="package-name">[`@stdlib/string-first-cli`][@stdlib/string-first-cli]</span><span class="delimiter">: </span><span class="description">CLI package for use as a command-line utility.</span>
|
|
148
148
|
- <span class="package-name">[`@stdlib/string-remove-first`][@stdlib/string/remove-first]</span><span class="delimiter">: </span><span class="description">remove the first character(s) of a string.</span>
|
|
149
|
+
- <span class="package-name">[`@stdlib/string-last`][@stdlib/string/last]</span><span class="delimiter">: </span><span class="description">return the last character(s) of a string.</span>
|
|
149
150
|
|
|
150
151
|
</section>
|
|
151
152
|
|
|
@@ -192,8 +193,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
192
193
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/string-first.svg
|
|
193
194
|
[npm-url]: https://npmjs.org/package/@stdlib/string-first
|
|
194
195
|
|
|
195
|
-
[test-image]: https://github.com/stdlib-js/string-first/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
196
|
-
[test-url]: https://github.com/stdlib-js/string-first/actions/workflows/test.yml?query=branch:v0.2.
|
|
196
|
+
[test-image]: https://github.com/stdlib-js/string-first/actions/workflows/test.yml/badge.svg?branch=v0.2.2
|
|
197
|
+
[test-url]: https://github.com/stdlib-js/string-first/actions/workflows/test.yml?query=branch:v0.2.2
|
|
197
198
|
|
|
198
199
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/string-first/main.svg
|
|
199
200
|
[coverage-url]: https://codecov.io/github/stdlib-js/string-first?branch=main
|
|
@@ -237,6 +238,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
237
238
|
|
|
238
239
|
[@stdlib/string/remove-first]: https://www.npmjs.com/package/@stdlib/string-remove-first
|
|
239
240
|
|
|
241
|
+
[@stdlib/string/last]: https://www.npmjs.com/package/@stdlib/string-last
|
|
242
|
+
|
|
240
243
|
<!-- </related-links> -->
|
|
241
244
|
|
|
242
245
|
</section>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/string-first",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Return the first character(s) of 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
|
-
"
|
|
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,22 +30,18 @@
|
|
|
37
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stdlib/array-base-assert-contains": "^0.2.
|
|
41
|
-
"@stdlib/assert-has-own-property": "^0.2.
|
|
42
|
-
"@stdlib/assert-is-nonnegative-integer": "^0.2.
|
|
43
|
-
"@stdlib/assert-is-plain-object": "^0.2.
|
|
44
|
-
"@stdlib/assert-is-string": "^0.2.
|
|
45
|
-
"@stdlib/string-base-first": "^0.2.
|
|
46
|
-
"@stdlib/string-base-first-code-point": "^0.2.
|
|
47
|
-
"@stdlib/string-base-first-grapheme-cluster": "^0.2.
|
|
48
|
-
"@stdlib/string-format": "^0.2.
|
|
49
|
-
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
52
|
-
"proxyquire": "^2.0.0",
|
|
53
|
-
"istanbul": "^0.4.1",
|
|
54
|
-
"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.2",
|
|
35
|
+
"@stdlib/assert-is-nonnegative-integer": "^0.2.2",
|
|
36
|
+
"@stdlib/assert-is-plain-object": "^0.2.2",
|
|
37
|
+
"@stdlib/assert-is-string": "^0.2.2",
|
|
38
|
+
"@stdlib/string-base-first": "^0.2.2",
|
|
39
|
+
"@stdlib/string-base-first-code-point": "^0.2.2",
|
|
40
|
+
"@stdlib/string-base-first-grapheme-cluster": "^0.2.2",
|
|
41
|
+
"@stdlib/string-format": "^0.2.2",
|
|
42
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
|
|
55
43
|
},
|
|
44
|
+
"devDependencies": {},
|
|
56
45
|
"engines": {
|
|
57
46
|
"node": ">=0.10.0",
|
|
58
47
|
"npm": ">2.7.0"
|