@poppinss/utils 6.5.0-5 → 6.5.0-7
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 +14 -4
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -31,10 +31,11 @@ A note to self and others to consider the following packages.
|
|
|
31
31
|
|
|
32
32
|
Even though I do not care much about the package size (most of work is consumed on server side), I am mindful around the utilities and ensure not end up using really big packages for smaller use-cases.
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
Here's the last checked install size of this package.
|
|
35
|
+
|
|
36
|
+
<a href="https://pkg-size.dev/@poppinss/utils@next">
|
|
37
|
+
<img src="https://pkg-size.dev/badge/install/319382" title="Install size for @poppinss/utils">
|
|
38
|
+
</a>
|
|
38
39
|
|
|
39
40
|
## Installation
|
|
40
41
|
|
|
@@ -55,14 +56,23 @@ Following are the exported modules. Only the generic helpers are shipped from th
|
|
|
55
56
|
// string sub-module
|
|
56
57
|
import string from '@poppinss/utils/string'
|
|
57
58
|
|
|
59
|
+
// string builder
|
|
60
|
+
import string from '@poppinss/utils/string_builder'
|
|
61
|
+
|
|
58
62
|
// json sub-module
|
|
59
63
|
import json from '@poppinss/utils/json'
|
|
60
64
|
|
|
61
65
|
// lodash sub-module
|
|
62
66
|
import lodash from '@poppinss/utils/lodash'
|
|
63
67
|
|
|
68
|
+
// assert sub-module
|
|
69
|
+
import assert from '@poppinss/utils/assert'
|
|
70
|
+
|
|
64
71
|
// main module
|
|
65
72
|
import { base64, Exception, fsReadAll } from '@poppinss/utils'
|
|
73
|
+
|
|
74
|
+
// types sub-module
|
|
75
|
+
import { ReadAllFilesOptions } from '@poppinss/utils/types'
|
|
66
76
|
```
|
|
67
77
|
|
|
68
78
|
### String helpers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poppinss/utils",
|
|
3
|
-
"version": "6.5.0-
|
|
3
|
+
"version": "6.5.0-7",
|
|
4
4
|
"description": "Handy utilities for repetitive work",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"types": "./lodash/lodash.types.d.ts",
|
|
15
15
|
"node": "./build/lodash/main.cjs"
|
|
16
16
|
},
|
|
17
|
+
"./assert": "./build/src/assert.js",
|
|
17
18
|
"./string": "./build/src/string/main.js",
|
|
18
19
|
"./string_builder": "./build/src/string_builder.js",
|
|
19
20
|
"./json": "./build/src/json/main.js",
|
|
@@ -53,12 +54,12 @@
|
|
|
53
54
|
"@japa/assert": "^2.0.0-1",
|
|
54
55
|
"@japa/expect-type": "^2.0.0-0",
|
|
55
56
|
"@japa/runner": "^3.0.0-2",
|
|
56
|
-
"@swc/core": "
|
|
57
|
-
"@types/fs-extra": "^11.0.
|
|
58
|
-
"@types/node": "^20.3
|
|
57
|
+
"@swc/core": "1.3.82",
|
|
58
|
+
"@types/fs-extra": "^11.0.2",
|
|
59
|
+
"@types/node": "^20.6.3",
|
|
59
60
|
"c8": "^8.0.0",
|
|
60
|
-
"del-cli": "^5.
|
|
61
|
-
"eslint": "^8.
|
|
61
|
+
"del-cli": "^5.1.0",
|
|
62
|
+
"eslint": "^8.50.0",
|
|
62
63
|
"fs-extra": "^11.1.1",
|
|
63
64
|
"github-label-sync": "^2.3.1",
|
|
64
65
|
"husky": "^8.0.3",
|
|
@@ -66,14 +67,14 @@
|
|
|
66
67
|
"lodash-cli": "^4.17.5",
|
|
67
68
|
"move-file-cli": "^3.0.0",
|
|
68
69
|
"np": "^8.0.4",
|
|
69
|
-
"prettier": "^3.0.
|
|
70
|
+
"prettier": "^3.0.3",
|
|
70
71
|
"ts-node": "^10.9.1",
|
|
71
72
|
"tsup": "^7.1.0",
|
|
72
|
-
"typescript": "^5.
|
|
73
|
+
"typescript": "^5.2.2"
|
|
73
74
|
},
|
|
74
75
|
"dependencies": {
|
|
75
76
|
"@lukeed/ms": "^2.0.1",
|
|
76
|
-
"@types/bytes": "^3.1.
|
|
77
|
+
"@types/bytes": "^3.1.2",
|
|
77
78
|
"@types/pluralize": "0.0.30",
|
|
78
79
|
"bytes": "^3.1.2",
|
|
79
80
|
"case-anything": "^2.1.13",
|