https://github.com/ymc-github/sh-lib-str-fun
some function for handle str for ymc shell lib
https://github.com/ymc-github/sh-lib-str-fun
lib sh str ymc
Last synced: 4 months ago
JSON representation
some function for handle str for ymc shell lib
- Host: GitHub
- URL: https://github.com/ymc-github/sh-lib-str-fun
- Owner: YMC-GitHub
- License: mit
- Created: 2020-06-03T13:56:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T09:04:01.000Z (about 5 years ago)
- Last Synced: 2025-01-07T23:44:32.905Z (5 months ago)
- Topics: lib, sh, str, ymc
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sh lib str-fun
## desc
some function for handle str for ymc shell lib
## feat
- [x] str_set
- [x] str_length
- [x] str_index_of
- [x] str_last_index_of
- [x] str_replace
- [x] str_split
- [x] str_char_at
- [x] str_charcode_at
- [x] str_unicode_at
- [x] str_from_charcode
- [x] str_from_unicode
- [ ] str_match
- [x] str_slice
- [ ] str_substring
- [ ] str_substr
- [x] str_trim
- [x] str_eq
- [x] str_fill```sh
cat src/index.sh | grep "function " | sed "s/function */- [x] /g" | sed "s/() *{//g"
```
## how to use for poduction?```sh
# get the code# run the index file
# ./index.sh# or import to your sh file
# source /path/to/the/index file# simple usage
```
## how to use for developer?
```sh
# get the code# run test
./test.sh
#2 get some fail test
#./test.sh | grep "it is false"
```## author
yemiancheng
## license
MIT