stringzy 4.1.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.
Files changed (82) hide show
  1. package/.github/workflows/auto-assign.yml +26 -0
  2. package/CODE_OF_CONDUCT.MD +115 -0
  3. package/README.md +591 -79
  4. package/dist/analyzing/checkMultiplePatterns.d.ts +2 -2
  5. package/dist/analyzing/checkMultiplePatterns.js +43 -31
  6. package/dist/analyzing/index.d.ts +3 -0
  7. package/dist/analyzing/index.js +6 -2
  8. package/dist/analyzing/lexicographicalRank.d.ts +26 -0
  9. package/dist/analyzing/lexicographicalRank.js +66 -0
  10. package/dist/formatting/binary.d.ts +24 -0
  11. package/dist/formatting/binary.js +49 -0
  12. package/dist/formatting/creditCard.d.ts +8 -0
  13. package/dist/formatting/creditCard.js +28 -0
  14. package/dist/formatting/decimal.d.ts +21 -0
  15. package/dist/formatting/decimal.js +73 -0
  16. package/dist/formatting/duration.d.ts +27 -0
  17. package/dist/formatting/duration.js +92 -0
  18. package/dist/formatting/fileSize.d.ts +18 -0
  19. package/dist/formatting/fileSize.js +39 -0
  20. package/dist/formatting/hexadecimal.d.ts +14 -0
  21. package/dist/formatting/hexadecimal.js +38 -0
  22. package/dist/formatting/index.d.ts +42 -0
  23. package/dist/formatting/index.js +57 -1
  24. package/dist/formatting/listToString.d.ts +17 -0
  25. package/dist/formatting/listToString.js +35 -0
  26. package/dist/formatting/octal.d.ts +19 -0
  27. package/dist/formatting/octal.js +31 -0
  28. package/dist/formatting/ordinal.d.ts +20 -0
  29. package/dist/formatting/ordinal.js +43 -0
  30. package/dist/formatting/percentage.d.ts +19 -0
  31. package/dist/formatting/percentage.js +31 -0
  32. package/dist/formatting/romanNumerals.d.ts +20 -0
  33. package/dist/formatting/romanNumerals.js +53 -0
  34. package/dist/formatting/scientific.d.ts +14 -0
  35. package/dist/formatting/scientific.js +24 -0
  36. package/dist/formatting/temperature.d.ts +6 -0
  37. package/dist/formatting/temperature.js +27 -0
  38. package/dist/formatting/trim.d.ts +10 -0
  39. package/dist/formatting/trim.js +20 -0
  40. package/dist/index.d.ts +17 -0
  41. package/dist/tests/analyzing/lexicographicalRank.test.d.ts +1 -0
  42. package/dist/tests/analyzing/lexicographicalRank.test.js +43 -0
  43. package/dist/tests/formatting/binary.test.d.ts +1 -0
  44. package/dist/tests/formatting/binary.test.js +53 -0
  45. package/dist/tests/formatting/creditCard.test.d.ts +1 -0
  46. package/dist/tests/formatting/creditCard.test.js +31 -0
  47. package/dist/tests/formatting/decimal.test.d.ts +1 -0
  48. package/dist/tests/formatting/decimal.test.js +62 -0
  49. package/dist/tests/formatting/duration.test.d.ts +1 -0
  50. package/dist/tests/formatting/duration.test.js +61 -0
  51. package/dist/tests/formatting/fileSize.test.d.ts +1 -0
  52. package/dist/tests/formatting/fileSize.test.js +39 -0
  53. package/dist/tests/formatting/hexadecimal.test.d.ts +1 -0
  54. package/dist/tests/formatting/hexadecimal.test.js +38 -0
  55. package/dist/tests/formatting/listToString.test.d.ts +1 -0
  56. package/dist/tests/formatting/listToString.test.js +37 -0
  57. package/dist/tests/formatting/octal.test.d.ts +1 -0
  58. package/dist/tests/formatting/octal.test.js +36 -0
  59. package/dist/tests/formatting/ordinal.test.d.ts +1 -0
  60. package/dist/tests/formatting/ordinal.test.js +37 -0
  61. package/dist/tests/formatting/percentage.test.d.ts +1 -0
  62. package/dist/tests/formatting/percentage.test.js +38 -0
  63. package/dist/tests/formatting/romanNumerals.test.d.ts +1 -0
  64. package/dist/tests/formatting/romanNumerals.test.js +35 -0
  65. package/dist/tests/formatting/scientific.test.d.ts +1 -0
  66. package/dist/tests/formatting/scientific.test.js +35 -0
  67. package/dist/tests/formatting/temperature.test.d.ts +1 -0
  68. package/dist/tests/formatting/temperature.test.js +34 -0
  69. package/dist/tests/formatting/trim.test.d.ts +1 -0
  70. package/dist/tests/formatting/trim.test.js +42 -0
  71. package/dist/tests/transformations/stringPermutations.test.js +70 -0
  72. package/dist/tests/validations/isIPv6.test.d.ts +1 -0
  73. package/dist/tests/validations/isIPv6.test.js +65 -0
  74. package/dist/transformations/index.d.ts +3 -2
  75. package/dist/transformations/index.js +3 -1
  76. package/dist/transformations/stringPermutations.d.ts +23 -1
  77. package/dist/transformations/stringPermutations.js +127 -1
  78. package/dist/validations/index.d.ts +3 -0
  79. package/dist/validations/index.js +5 -1
  80. package/dist/validations/isIPv6.d.ts +24 -0
  81. package/dist/validations/isIPv6.js +45 -0
  82. package/package.json +1 -1
@@ -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! ๐Ÿš€