stringzy 4.0.0 โ 4.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/.github/workflows/auto-assign.yml +26 -0
- package/CODE_OF_CONDUCT.MD +115 -0
- package/README.md +963 -40
- package/dist/analyzing/checkMultiplePatterns.d.ts +14 -0
- package/dist/analyzing/checkMultiplePatterns.js +75 -0
- package/dist/analyzing/checkSubsequence.d.ts +14 -0
- package/dist/analyzing/checkSubsequence.js +33 -0
- package/dist/analyzing/contentWordCount.d.ts +11 -0
- package/dist/analyzing/contentWordCount.js +23 -0
- package/dist/analyzing/functionWordCount.d.ts +11 -0
- package/dist/analyzing/functionWordCount.js +33 -0
- package/dist/analyzing/index.d.ts +14 -0
- package/dist/analyzing/index.js +22 -2
- package/dist/analyzing/lexicographicalRank.d.ts +26 -0
- package/dist/analyzing/lexicographicalRank.js +66 -0
- package/dist/analyzing/patternCount.d.ts +6 -5
- package/dist/analyzing/patternCount.js +19 -17
- package/dist/analyzing/stringRotation.d.ts +29 -0
- package/dist/analyzing/stringRotation.js +44 -0
- package/dist/formatting/binary.d.ts +24 -0
- package/dist/formatting/binary.js +49 -0
- package/dist/formatting/creditCard.d.ts +8 -0
- package/dist/formatting/creditCard.js +28 -0
- package/dist/formatting/decimal.d.ts +21 -0
- package/dist/formatting/decimal.js +73 -0
- package/dist/formatting/duration.d.ts +27 -0
- package/dist/formatting/duration.js +92 -0
- package/dist/formatting/fileSize.d.ts +18 -0
- package/dist/formatting/fileSize.js +39 -0
- package/dist/formatting/hexadecimal.d.ts +14 -0
- package/dist/formatting/hexadecimal.js +38 -0
- package/dist/formatting/index.d.ts +42 -0
- package/dist/formatting/index.js +57 -1
- package/dist/formatting/listToString.d.ts +17 -0
- package/dist/formatting/listToString.js +35 -0
- package/dist/formatting/octal.d.ts +19 -0
- package/dist/formatting/octal.js +31 -0
- package/dist/formatting/ordinal.d.ts +20 -0
- package/dist/formatting/ordinal.js +43 -0
- package/dist/formatting/percentage.d.ts +19 -0
- package/dist/formatting/percentage.js +31 -0
- package/dist/formatting/romanNumerals.d.ts +20 -0
- package/dist/formatting/romanNumerals.js +53 -0
- package/dist/formatting/scientific.d.ts +14 -0
- package/dist/formatting/scientific.js +24 -0
- package/dist/formatting/temperature.d.ts +6 -0
- package/dist/formatting/temperature.js +27 -0
- package/dist/formatting/trim.d.ts +10 -0
- package/dist/formatting/trim.js +20 -0
- package/dist/index.d.ts +30 -0
- package/dist/tests/analyzing/checkMultiplePatterns.test.d.ts +1 -0
- package/dist/tests/analyzing/checkMultiplePatterns.test.js +81 -0
- package/dist/tests/analyzing/checkSubsequence.test.d.ts +1 -0
- package/dist/tests/analyzing/checkSubsequence.test.js +34 -0
- package/dist/tests/analyzing/contentWordCount.test.d.ts +1 -0
- package/dist/tests/analyzing/contentWordCount.test.js +20 -0
- package/dist/tests/analyzing/functionWordCount.test.d.ts +1 -0
- package/dist/tests/analyzing/functionWordCount.test.js +20 -0
- package/dist/tests/analyzing/lexicographicalRank.test.d.ts +1 -0
- package/dist/tests/analyzing/lexicographicalRank.test.js +43 -0
- package/dist/tests/analyzing/stringRotation.test.d.ts +1 -0
- package/dist/tests/analyzing/stringRotation.test.js +42 -0
- package/dist/tests/formatting/binary.test.d.ts +1 -0
- package/dist/tests/formatting/binary.test.js +53 -0
- package/dist/tests/formatting/creditCard.test.d.ts +1 -0
- package/dist/tests/formatting/creditCard.test.js +31 -0
- package/dist/tests/formatting/decimal.test.d.ts +1 -0
- package/dist/tests/formatting/decimal.test.js +62 -0
- package/dist/tests/formatting/duration.test.d.ts +1 -0
- package/dist/tests/formatting/duration.test.js +61 -0
- package/dist/tests/formatting/fileSize.test.d.ts +1 -0
- package/dist/tests/formatting/fileSize.test.js +39 -0
- package/dist/tests/formatting/hexadecimal.test.d.ts +1 -0
- package/dist/tests/formatting/hexadecimal.test.js +38 -0
- package/dist/tests/formatting/listToString.test.d.ts +1 -0
- package/dist/tests/formatting/listToString.test.js +37 -0
- package/dist/tests/formatting/octal.test.d.ts +1 -0
- package/dist/tests/formatting/octal.test.js +36 -0
- package/dist/tests/formatting/ordinal.test.d.ts +1 -0
- package/dist/tests/formatting/ordinal.test.js +37 -0
- package/dist/tests/formatting/percentage.test.d.ts +1 -0
- package/dist/tests/formatting/percentage.test.js +38 -0
- package/dist/tests/formatting/romanNumerals.test.d.ts +1 -0
- package/dist/tests/formatting/romanNumerals.test.js +35 -0
- package/dist/tests/formatting/scientific.test.d.ts +1 -0
- package/dist/tests/formatting/scientific.test.js +35 -0
- package/dist/tests/formatting/temperature.test.d.ts +1 -0
- package/dist/tests/formatting/temperature.test.js +34 -0
- package/dist/tests/formatting/trim.test.d.ts +1 -0
- package/dist/tests/formatting/trim.test.js +42 -0
- package/dist/tests/transformations/reverseString.test.d.ts +1 -0
- package/dist/tests/transformations/reverseString.test.js +41 -0
- package/dist/tests/transformations/stringCombinations.test.d.ts +1 -0
- package/dist/tests/transformations/stringCombinations.test.js +41 -0
- package/dist/tests/transformations/stringPermutations.test.d.ts +1 -0
- package/dist/tests/transformations/stringPermutations.test.js +110 -0
- package/dist/tests/validations/isAlphaNumeric.test.d.ts +1 -0
- package/dist/tests/validations/isAlphaNumeric.test.js +30 -0
- package/dist/tests/validations/isAlphabetic.test.d.ts +1 -0
- package/dist/tests/validations/isAlphabetic.test.js +32 -0
- package/dist/tests/validations/isAnagram.test.d.ts +1 -0
- package/dist/tests/validations/isAnagram.test.js +44 -0
- package/dist/tests/validations/isIPv6.test.d.ts +1 -0
- package/dist/tests/validations/isIPv6.test.js +65 -0
- package/dist/tests/validations/isLowerCase.test.d.ts +1 -0
- package/dist/tests/validations/isLowerCase.test.js +50 -0
- package/dist/tests/validations/isMacAddress.test.d.ts +1 -0
- package/dist/tests/validations/isMacAddress.test.js +72 -0
- package/dist/tests/validations/isPanagram.test.d.ts +1 -0
- package/dist/tests/validations/isPanagram.test.js +39 -0
- package/dist/tests/validations/isUpperCase.test.d.ts +1 -0
- package/dist/tests/validations/isUpperCase.test.js +50 -0
- package/dist/transformations/index.d.ts +10 -0
- package/dist/transformations/index.js +16 -2
- package/dist/transformations/reverseWordsInString .d.ts +9 -0
- package/dist/transformations/reverseWordsInString .js +49 -0
- package/dist/transformations/stringCombinations.d.ts +28 -0
- package/dist/transformations/stringCombinations.js +44 -0
- package/dist/transformations/stringPermutations.d.ts +53 -0
- package/dist/transformations/stringPermutations.js +179 -0
- package/dist/validations/index.d.ts +24 -0
- package/dist/validations/index.js +34 -2
- package/dist/validations/isAlphaNumeric.d.ts +11 -0
- package/dist/validations/isAlphaNumeric.js +22 -0
- package/dist/validations/isAlphabetic.d.ts +9 -0
- package/dist/validations/isAlphabetic.js +21 -0
- package/dist/validations/isAnagram.d.ts +13 -0
- package/dist/validations/isAnagram.js +23 -0
- package/dist/validations/isIPv6.d.ts +24 -0
- package/dist/validations/isIPv6.js +45 -0
- package/dist/validations/isLowerCase.d.ts +12 -0
- package/dist/validations/isLowerCase.js +32 -0
- package/dist/validations/isMacAddress.d.ts +27 -0
- package/dist/validations/isMacAddress.js +43 -0
- package/dist/validations/isPanagram.d.ts +20 -0
- package/dist/validations/isPanagram.js +35 -0
- package/dist/validations/isUpperCase.d.ts +12 -0
- package/dist/validations/isUpperCase.js +32 -0
- package/package.json +3 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Auto-assign issue creator
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issues:
|
|
5
|
+
types: [opened]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
issues: write # required to assign issues
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
auto-assign:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- name: Assign issue to creator
|
|
15
|
+
uses: actions/github-script@v7
|
|
16
|
+
with:
|
|
17
|
+
script: |
|
|
18
|
+
const issueNumber = context.issue.number;
|
|
19
|
+
const issueAuthor = context.payload.issue.user.login;
|
|
20
|
+
|
|
21
|
+
await github.rest.issues.addAssignees({
|
|
22
|
+
owner: context.repo.owner,
|
|
23
|
+
repo: context.repo.repo,
|
|
24
|
+
issue_number: issueNumber,
|
|
25
|
+
assignees: [issueAuthor]
|
|
26
|
+
});
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Contributor Code of Conduct
|
|
2
|
+
|
|
3
|
+
## ๐ Introduction
|
|
4
|
+
|
|
5
|
+
Welcome to our project!
|
|
6
|
+
Weโre thrilled that youโre interested in contributing during **Hacktoberfest** ๐
|
|
7
|
+
|
|
8
|
+
Our goal is to build a friendly, safe, and inclusive environment where everyone โ regardless of background, experience, or identity โ feels welcome to participate and learn.
|
|
9
|
+
|
|
10
|
+
This Code of Conduct outlines our expectations for participants and the steps we take to foster a positive community.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## ๐ฌ Our Pledge
|
|
15
|
+
|
|
16
|
+
We as contributors, maintainers, and community members pledge to make participation in our project a **harassment-free experience for everyone**, regardless of:
|
|
17
|
+
|
|
18
|
+
- Age
|
|
19
|
+
- Body size
|
|
20
|
+
- Visible or invisible disability
|
|
21
|
+
- Ethnicity
|
|
22
|
+
- Gender identity and expression
|
|
23
|
+
- Level of experience
|
|
24
|
+
- Education
|
|
25
|
+
- Socio-economic status
|
|
26
|
+
- Nationality
|
|
27
|
+
- Personal appearance
|
|
28
|
+
- Race
|
|
29
|
+
- Religion (or lack thereof)
|
|
30
|
+
- Sexual identity and orientation
|
|
31
|
+
|
|
32
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, and healthy community.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## ๐ค Our Standards
|
|
37
|
+
|
|
38
|
+
Examples of behavior that contributes to a positive environment include:
|
|
39
|
+
|
|
40
|
+
- Showing empathy and kindness toward other people
|
|
41
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
42
|
+
- Giving and gracefully accepting constructive feedback
|
|
43
|
+
- Taking responsibility and apologizing for mistakes
|
|
44
|
+
- Focusing on whatโs best for the community
|
|
45
|
+
|
|
46
|
+
Examples of **unacceptable behavior** include:
|
|
47
|
+
|
|
48
|
+
- The use of sexualized language or imagery, or unwelcome sexual attention
|
|
49
|
+
- Trolling, insulting, or derogatory comments
|
|
50
|
+
- Personal or political attacks
|
|
51
|
+
- Public or private harassment
|
|
52
|
+
- Publishing othersโ private information (such as a physical or email address) without explicit permission
|
|
53
|
+
- Any other conduct that could reasonably be considered inappropriate in a professional setting
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## ๐ฎ Enforcement Responsibilities
|
|
58
|
+
|
|
59
|
+
Project maintainers are responsible for clarifying and enforcing our standards of acceptable behavior.
|
|
60
|
+
They have the right and responsibility to remove, edit, or reject:
|
|
61
|
+
|
|
62
|
+
- Comments
|
|
63
|
+
- Commits
|
|
64
|
+
- Code
|
|
65
|
+
- Wiki edits
|
|
66
|
+
- Issues and pull requests
|
|
67
|
+
|
|
68
|
+
that are not aligned with this Code of Conduct.
|
|
69
|
+
|
|
70
|
+
Maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent removal from the project team.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## ๐จ Reporting Issues
|
|
75
|
+
|
|
76
|
+
If you experience or witness unacceptable behavior, please report it by contacting the maintainers through:
|
|
77
|
+
|
|
78
|
+
๐ง **Email:** [your-email@example.com]
|
|
79
|
+
(Replace this with your preferred contact email.)
|
|
80
|
+
|
|
81
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
82
|
+
|
|
83
|
+
Maintainers are obligated to respect the privacy and security of the reporter of any incident.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## โ๏ธ Enforcement Guidelines
|
|
88
|
+
|
|
89
|
+
1. **Warning** โ For first-time or minor incidents.
|
|
90
|
+
2. **Temporary Ban** โ For more serious or repeated violations.
|
|
91
|
+
3. **Permanent Ban** โ For continuous or severe violations.
|
|
92
|
+
|
|
93
|
+
Each case will be handled with care and discretion.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## ๐ Scope
|
|
98
|
+
|
|
99
|
+
This Code of Conduct applies both **within project spaces** and **in public spaces** when an individual is representing the project or its community (for example, in GitHub discussions, Discord servers, or social media).
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## ๐ Acknowledgement
|
|
104
|
+
|
|
105
|
+
This Code of Conduct is adapted from the [Contributor Covenant v2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html), a widely adopted standard for open-source communities.
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## ๐ Hacktoberfest Note
|
|
110
|
+
|
|
111
|
+
We encourage **first-time contributors**!
|
|
112
|
+
If youโre new to open source or GitHub, donโt worry โ weโre here to help.
|
|
113
|
+
Ask questions, be kind, and have fun contributing during Hacktoberfest!
|
|
114
|
+
|
|
115
|
+
Happy coding and welcome aboard! ๐
|