https://github.com/ryoppippi/str-fns
A collection of utilities for TS/JS string
https://github.com/ryoppippi/str-fns
javascript string-functions typescript utility-library
Last synced: 9 months ago
JSON representation
A collection of utilities for TS/JS string
- Host: GitHub
- URL: https://github.com/ryoppippi/str-fns
- Owner: ryoppippi
- License: mit
- Created: 2023-07-03T08:30:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-18T18:22:25.000Z (9 months ago)
- Last Synced: 2025-04-03T11:48:42.063Z (9 months ago)
- Topics: javascript, string-functions, typescript, utility-library
- Language: TypeScript
- Homepage: https://jsr.io/@ryoppippi/str-fns
- Size: 591 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# str-fns
[](https://github.com/ryoppippi/str-fns/actions/workflows/ci.yaml)
[](https://codecov.io/gh/ryoppippi/str-fns)
[](https://jsr.io/@ryoppippi/str-fns)
[](https://jsr.io/@ryoppippi/str-fns)
A collection of type-safe string functions written in pure TypeScript.
## Why str-fns
- I copy and paste useful functions from my notepad for every project using
TypeScript/JavaScript. This library is a library of those functions.
- I need some useful functions to deal with `string` types in my projects. This
library is a collection of those functions with type-safety.
## API
- [`capitalize`](src/capitalize.ts) - Capitalize the first letter of a string.
- [`uncapitalize`](src/uncapitalize.ts) - Uncapitalize the first letter of a
string.
- [`uppercase`](src/uppercase.ts) - Convert a string to uppercase.
- [`lowercase`](src/lowercase.ts) - Convert a string to lowercase.
- [`split`](src/split.ts) - Split a string into substrings using the specified
separator and return them as an array.
- [`concat`](src/concat.ts) - Concatenate strings.
## Related Works
- [native-dash](https://github.com/yankeeinlondon/native-dash)
- [type-fest](https://github.com/sindresorhus/type-fest)
## License
MIT