https://github.com/ymc-github/sh-lib-path-resolve
resovle path like nodejs lib 'path'
https://github.com/ymc-github/sh-lib-path-resolve
lib path shell
Last synced: 12 months ago
JSON representation
resovle path like nodejs lib 'path'
- Host: GitHub
- URL: https://github.com/ymc-github/sh-lib-path-resolve
- Owner: YMC-GitHub
- License: mit
- Created: 2020-01-24T16:20:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-14T06:15:07.000Z (over 6 years ago)
- Last Synced: 2025-02-25T09:23:34.586Z (over 1 year ago)
- Topics: lib, path, shell
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sh lib path resovle
## desc
resovle path like nodejs lib 'path'
## feat
- support absolute
- support relative
## 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
# usage
# path_resolve "/app" "src'
# path_resolve "/app/src" "./xx/xx/b/"
# path_resolve "/app/src" "../xx/xx/a/"
# path_resolve "/app/src" "/d"
```
## 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