https://github.com/lovetingyuan/ty-open
Site Favorites For Terminal
https://github.com/lovetingyuan/ty-open
Last synced: 4 months ago
JSON representation
Site Favorites For Terminal
- Host: GitHub
- URL: https://github.com/lovetingyuan/ty-open
- Owner: lovetingyuan
- License: mit
- Created: 2017-06-11T14:51:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T03:08:22.000Z (over 7 years ago)
- Last Synced: 2025-01-03T20:12:28.269Z (5 months ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change-pkg.js
- License: LICENSE
Awesome Lists containing this project
README
## ty-open
### install
`npm install ty-open -g`### usage
```
usage: to [command] [args...] [options]
commands: add, ls, rm, bak, res
add, add a site, eg: to add npm "https://www.npmjs.com/"
options: -s, -d
-s, --ssl, use "https" as the protocol, no need to specify it
-d, --default, set default url (used when no arguments are provided)
-f, --force, add a site without checking the url
ls, list sites, eg: to ls npm
options: -t
-t, --tree, will list the sites in a tree
rm, delete a site, eg: to rm npm
options: -f, -c
-f, --force, delete the site without prompt
-c, --children, only delete the children sites under the namespace
bak, export current config file, eg: to bak [path], default path is current dir
res, import config file, eg: to res
options: -m
-m, --merge, merge custom config file and current config file, default is false
when command is the site name or a valid url, will open the default browser directly
eg: to npm, will open "https://www.npmjs.com"
```**notice: `add`, `rm`, `ls`, `bak` and `res` are retained for this command, you can not use them as a site name, eg: `to add rm "https://..."` is invalid**
### license
MIT