@stacksjs/strings 0.37.8 → 0.38.3
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 +22 -13
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +11 -8
package/README.md
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
# Stacks Strings
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Easily manipulate & work with strings.
|
|
4
4
|
|
|
5
5
|
## ☘️ Features
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- ⚡️
|
|
10
|
-
|
|
11
|
-
wip
|
|
7
|
+
- Easily manipulate strings
|
|
8
|
+
- Powerful & fast API
|
|
12
9
|
|
|
13
10
|
## 🤖 Usage
|
|
14
11
|
|
|
15
|
-
wip
|
|
16
|
-
|
|
17
12
|
```bash
|
|
18
13
|
pnpm i -D @stacksjs/strings
|
|
19
14
|
```
|
|
@@ -21,12 +16,17 @@ pnpm i -D @stacksjs/strings
|
|
|
21
16
|
Now, you can use it in your project:
|
|
22
17
|
|
|
23
18
|
```js
|
|
24
|
-
import
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
import {
|
|
20
|
+
addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, camelCase, capitalCase, constantCase, dotCase,
|
|
21
|
+
headerCase, isPlural, isSingular, kebabCase, noCase, paramCase, pascalCase,
|
|
22
|
+
pathCase, plural, sentenceCase, singular, snakeCase
|
|
23
|
+
} from '@stacksjs/strings'
|
|
24
|
+
|
|
25
|
+
console.log(camelCase('hello world')) // helloWorld
|
|
26
|
+
console.log(plural('dog')) // dogs
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
To view the full documentation, please visit [https://stacksjs.dev/strings](https://stacksjs.dev/strings).
|
|
30
30
|
|
|
31
31
|
## 🧪 Testing
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ pnpm test
|
|
|
36
36
|
|
|
37
37
|
## 📈 Changelog
|
|
38
38
|
|
|
39
|
-
Please see our [releases](https://github.com/stacksjs/
|
|
39
|
+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
|
|
40
40
|
|
|
41
41
|
## 💪🏼 Contributing
|
|
42
42
|
|
|
@@ -52,6 +52,15 @@ For casual chit-chat with others using this package:
|
|
|
52
52
|
|
|
53
53
|
[Join the Open Web Discord Server](https://discord.ow3.org)
|
|
54
54
|
|
|
55
|
+
## 🙏🏼 Credits
|
|
56
|
+
|
|
57
|
+
Many thanks to the following core technologies & people who have contributed to this package:
|
|
58
|
+
|
|
59
|
+
- [change-case](https://www.npmjs.com/package/change-case)
|
|
60
|
+
- [pluralize](https://www.npmjs.com/package/pluralize)
|
|
61
|
+
- [Chris Breuer](https://github.com/chrisbbreuer)
|
|
62
|
+
- [All Contributors](../../contributors)
|
|
63
|
+
|
|
55
64
|
## 📄 License
|
|
56
65
|
|
|
57
66
|
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
+
export { plural, singular, isPlural, isSingular, addPluralRule, addSingularRule, addIrregularRule, addUncountableRule } from 'pluralize';
|
|
1
2
|
export { camelCase, capitalCase, constantCase, dotCase, headerCase, noCase, paramCase, paramCase as kebabCase, pascalCase, pathCase, sentenceCase, snakeCase, } from 'change-case';
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/strings",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.38.3",
|
|
5
|
+
"packageManager": "pnpm@7.15.0",
|
|
6
6
|
"description": "The Stacks string utilities.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -41,17 +41,20 @@
|
|
|
41
41
|
"Chris Breuer <chris@ow3.org>"
|
|
42
42
|
],
|
|
43
43
|
"files": [
|
|
44
|
-
"dist"
|
|
44
|
+
"dist",
|
|
45
|
+
"README.md"
|
|
45
46
|
],
|
|
46
47
|
"engines": {
|
|
47
|
-
"node": ">=v18.
|
|
48
|
-
"pnpm": ">=7.
|
|
48
|
+
"node": ">=v18.12.1",
|
|
49
|
+
"pnpm": ">=7.15.0"
|
|
49
50
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@types/pluralize": "^0.0.29",
|
|
53
|
+
"change-case": "^4.1.2",
|
|
54
|
+
"pluralize": "^8.0.0"
|
|
52
55
|
},
|
|
53
56
|
"devDependencies": {
|
|
54
|
-
"mkdist": "^0.
|
|
57
|
+
"mkdist": "^0.4.0",
|
|
55
58
|
"typescript": "^4.8.4"
|
|
56
59
|
},
|
|
57
60
|
"scripts": {
|