Skip to content

Commit cc5ae36

Browse files
committed
style(refactor): refactoring and updated project structure
1 parent c74f5ba commit cc5ae36

13 files changed

+234
-145
lines changed

CHANGELOG.md

Lines changed: 5 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,39 @@
1-
<a name="1.0.17"></a>
2-
## [1.0.17](https://github.com/wessberg/stringutil/compare/v1.0.16...v1.0.17) (2018-06-20)
3-
1+
## [1.0.18](https://github.com/wessberg/stringutil/compare/v1.0.17...v1.0.18) (2018-10-18)
42

3+
### Features
54

6-
<a name="1.0.16"></a>
7-
## [1.0.16](https://github.com/wessberg/stringutil/compare/v1.0.15...v1.0.16) (2018-05-04)
5+
- Added a new function: 'truncate' ([9241795](https://github.com/wessberg/stringutil/commit/92417959f08578ada494d285629b4437fa583abf))
86

7+
## [1.0.17](https://github.com/wessberg/stringutil/compare/v1.0.16...v1.0.17) (2018-06-20)
98

9+
## [1.0.16](https://github.com/wessberg/stringutil/compare/v1.0.15...v1.0.16) (2018-05-04)
1010

11-
<a name="1.0.15"></a>
1211
## [1.0.15](https://github.com/wessberg/stringutil/compare/v1.0.14...v1.0.15) (2018-03-31)
1312

14-
15-
16-
<a name="1.0.14"></a>
1713
## [1.0.14](https://github.com/wessberg/stringutil/compare/v1.0.13...v1.0.14) (2018-02-03)
1814

19-
20-
21-
<a name="1.0.13"></a>
2215
## [1.0.13](https://github.com/wessberg/stringutil/compare/v1.0.12...v1.0.13) (2017-10-28)
2316

24-
25-
26-
<a name="1.0.12"></a>
2717
## [1.0.12](https://github.com/wessberg/stringutil/compare/v1.0.11...v1.0.12) (2017-10-22)
2818

29-
30-
31-
<a name="1.0.11"></a>
3219
## [1.0.11](https://github.com/wessberg/stringutil/compare/v1.0.10...v1.0.11) (2017-10-22)
3320

34-
35-
36-
<a name="1.0.10"></a>
3721
## [1.0.10](https://github.com/wessberg/stringutil/compare/v1.0.9...v1.0.10) (2017-08-20)
3822

39-
40-
41-
<a name="1.0.9"></a>
4223
## [1.0.9](https://github.com/wessberg/stringutil/compare/v1.0.8...v1.0.9) (2017-08-20)
4324

44-
45-
46-
<a name="1.0.8"></a>
4725
## [1.0.8](https://github.com/wessberg/stringutil/compare/v1.0.7...v1.0.8) (2017-08-08)
4826

49-
50-
51-
<a name="1.0.7"></a>
5227
## [1.0.7](https://github.com/wessberg/stringutil/compare/v1.0.6...v1.0.7) (2017-08-08)
5328

54-
55-
56-
<a name="1.0.6"></a>
5729
## [1.0.6](https://github.com/wessberg/stringutil/compare/v1.0.5...v1.0.6) (2017-08-08)
5830

59-
60-
61-
<a name="1.0.5"></a>
6231
## [1.0.5](https://github.com/wessberg/stringutil/compare/v1.0.4...v1.0.5) (2017-07-11)
6332

64-
65-
66-
<a name="1.0.4"></a>
6733
## [1.0.4](https://github.com/wessberg/stringutil/compare/v1.0.3...v1.0.4) (2017-07-10)
6834

69-
70-
71-
<a name="1.0.3"></a>
7235
## [1.0.3](https://github.com/wessberg/stringutil/compare/v1.0.2...v1.0.3) (2017-07-10)
7336

74-
75-
76-
<a name="1.0.2"></a>
7737
## [1.0.2](https://github.com/wessberg/stringutil/compare/v1.0.1...v1.0.2) (2017-07-10)
7838

79-
80-
81-
<a name="1.0.1"></a>
8239
## 1.0.1 (2017-07-10)
83-
84-
85-

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ Our Standards
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
Our Responsibilities
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting any of the code of conduct enforcers: [Frederik Wessberg](mailto:[email protected]).
58+
reported by contacting any of the code of conduct enforcers: [Frederik Wessberg](mailto:[email protected]) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg)).
5959
All complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.
@@ -68,4 +68,4 @@ members of the project's leadership.
6868
Attribution
6969

7070
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
71-
available at http://contributor-covenant.org/version/1/4/
71+
available at http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ You are more than welcome to contribute to `@wessberg/stringutil` in any way you
66
- Fixing issues and suggesting new features
77
- Blogging, tweeting, and creating tutorials about `@wessberg/stringutil`
88
- Reaching out to [@FredWessberg](https://twitter.com/FredWessberg) on Twitter
9-
- Submit an issue or a Pull Request
9+
- Submit an issue or a Pull Request

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2018 Frederik Wessberg <[email protected]>
3+
Copyright © 2019 [Frederik Wessberg](mailto:[email protected]) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg))
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE
21+
SOFTWARE

README.md

Lines changed: 90 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,66 @@
1-
<a href="https://npmcharts.com/compare/@wessberg/stringutil?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/%40wessberg%2Fstringutil.svg" height="20"></img></a>
2-
<a href="https://david-dm.org/wessberg/stringutil"><img alt="Dependencies" src="https://img.shields.io/david/wessberg/stringutil.svg" height="20"></img></a>
3-
<a href="https://www.npmjs.com/package/@wessberg/stringutil"><img alt="NPM Version" src="https://badge.fury.io/js/%40wessberg%2Fstringutil.svg" height="20"></img></a>
4-
<a href="https://github.com/wessberg/stringutil/graphs/contributors"><img alt="Contributors" src="https://img.shields.io/github/contributors/wessberg%2Fstringutil.svg" height="20"></img></a>
5-
<a href="https://opensource.org/licenses/MIT"><img alt="MIT License" src="https://img.shields.io/badge/License-MIT-yellow.svg" height="20"></img></a>
6-
<a href="https://www.patreon.com/bePatron?u=11315442"><img alt="Support on Patreon" src="https://c5.patreon.com/external/logo/[email protected]" height="20"></img></a>
1+
<!-- SHADOW_SECTION_LOGO_START -->
72

8-
# `@wessberg/stringutil`
3+
<!-- SHADOW_SECTION_LOGO_END -->
4+
5+
<!-- SHADOW_SECTION_DESCRIPTION_SHORT_START -->
96

107
> A collection of helper functions for working with strings
118
9+
<!-- SHADOW_SECTION_DESCRIPTION_SHORT_END -->
10+
11+
<!-- SHADOW_SECTION_BADGES_START -->
12+
13+
<a href="https://npmcharts.com/compare/%40wessberg%2Fstringutil?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/%40wessberg%2Fstringutil.svg" /></a>
14+
<a href="https://www.npmjs.com/package/%40wessberg%2Fstringutil"><img alt="NPM version" src="https://badge.fury.io/js/%40wessberg%2Fstringutil.svg" /></a>
15+
<a href="https://david-dm.org/wessberg/stringutil"><img alt="Dependencies" src="https://img.shields.io/david/wessberg%2Fstringutil.svg" /></a>
16+
<a href="https://github.com/wessberg/stringutil/graphs/contributors"><img alt="Contributors" src="https://img.shields.io/github/contributors/wessberg%2Fstringutil.svg" /></a>
17+
<a href="https://github.com/prettier/prettier"><img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square" /></a>
18+
<a href="https://opensource.org/licenses/MIT"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" /></a>
19+
<a href="https://www.patreon.com/bePatron?u=11315442"><img alt="Support on Patreon" src="https://img.shields.io/badge/patreon-donate-green.svg" /></a>
20+
21+
<!-- SHADOW_SECTION_BADGES_END -->
22+
23+
<!-- SHADOW_SECTION_DESCRIPTION_LONG_START -->
24+
1225
## Description
1326

14-
A collection of helper functions for working with strings.
27+
<!-- SHADOW_SECTION_DESCRIPTION_LONG_END -->
28+
29+
This library is a simple collection of helper functions for working with strings.
30+
31+
<!-- SHADOW_SECTION_FEATURES_START -->
32+
33+
### Features
34+
35+
<!-- SHADOW_SECTION_FEATURES_END -->
36+
37+
- Various helpers for changing and checking casing
38+
- Helpers for changing and checking quoting
39+
40+
<!-- SHADOW_SECTION_FEATURE_IMAGE_START -->
41+
42+
<!-- SHADOW_SECTION_FEATURE_IMAGE_END -->
43+
44+
<!-- SHADOW_SECTION_TOC_START -->
45+
46+
## Table of Contents
47+
48+
- [Description](#description)
49+
- [Features](#features)
50+
- [Table of Contents](#table-of-contents)
51+
- [Install](#install)
52+
- [NPM](#npm)
53+
- [Yarn](#yarn)
54+
- [Usage](#usage)
55+
- [Contributing](#contributing)
56+
- [Maintainers](#maintainers)
57+
- [Backers](#backers)
58+
- [Patreon](#patreon)
59+
- [License](#license)
60+
61+
<!-- SHADOW_SECTION_TOC_END -->
62+
63+
<!-- SHADOW_SECTION_INSTALL_START -->
1564

1665
## Install
1766

@@ -27,8 +76,14 @@ $ npm install @wessberg/stringutil
2776
$ yarn add @wessberg/stringutil
2877
```
2978

79+
<!-- SHADOW_SECTION_INSTALL_END -->
80+
81+
<!-- SHADOW_SECTION_USAGE_START -->
82+
3083
## Usage
3184

85+
<!-- SHADOW_SECTION_USAGE_END -->
86+
3287
```typescript
3388
import {camelCase, allIndexesOf} from "@wessberg/stringutil";
3489
camelCase("my-string"); // returns 'myString'
@@ -38,18 +93,40 @@ camelCase("my-complex_string HAS a_SPACE"); // returns 'myComplexStringHasASpace
3893
allIndexesOf(/_/g, "my string has underscores _here_"); // returns [26, 31]
3994
```
4095

96+
<!-- SHADOW_SECTION_CONTRIBUTING_START -->
97+
4198
## Contributing
4299

43100
Do you want to contribute? Awesome! Please follow [these recommendations](./CONTRIBUTING.md).
44101

102+
<!-- SHADOW_SECTION_CONTRIBUTING_END -->
103+
104+
<!-- SHADOW_SECTION_MAINTAINERS_START -->
105+
45106
## Maintainers
46107

47-
- <a href="https://github.com/wessberg"><img alt="Frederik Wessberg" src="https://avatars2.githubusercontent.com/u/20454213?s=460&v=4" height="11"></img></a> [Frederik Wessberg](https://github.com/wessberg): _Maintainer_
108+
| <img alt="Frederik Wessberg" src="https://avatars2.githubusercontent.com/u/20454213?s=460&v=4" height="70" /> |
109+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
110+
| [Frederik Wessberg](mailto:[email protected])<br><strong>Twitter</strong>: [@FredWessberg](https://twitter.com/FredWessberg)<br><strong>Github</strong>: [@wessberg](https://github.com/wessberg)<br>_Lead Developer_ |
111+
112+
<!-- SHADOW_SECTION_MAINTAINERS_END -->
113+
114+
<!-- SHADOW_SECTION_BACKERS_START -->
115+
116+
## Backers
117+
118+
### Patreon
119+
120+
[Become a backer](https://www.patreon.com/bePatron?u=11315442) and get your name, avatar, and Twitter handle listed here.
121+
122+
<a href="https://www.patreon.com/bePatron?u=11315442"><img alt="Backers on Patreon" src="https://patreon-badge.herokuapp.com/11315442.png" width="500" /></a>
123+
124+
<!-- SHADOW_SECTION_BACKERS_END -->
48125

49-
## Backers 🏅
126+
<!-- SHADOW_SECTION_LICENSE_START -->
50127

51-
[Become a backer](https://www.patreon.com/bePatron?u=11315442) and get your name, logo, and link to your site listed here.
128+
## License
52129

53-
## License 📄
130+
MIT © [Frederik Wessberg](mailto:[email protected]) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg))
54131

55-
MIT © [Frederik Wessberg](https://github.com/wessberg)
132+
<!-- SHADOW_SECTION_LICENSE_END -->

0 commit comments

Comments
 (0)