mirror of https://github.com/bobwen-dev/htpdate
Merge branch 'main' of https://github.com/bobwen-dev/htpdate into main
This commit is contained in:
commit
c42416b29b
15
README.md
15
README.md
|
@ -22,7 +22,7 @@ Change default protocol to 'http'
|
||||||
htpdate -s -p http www.pool.ntp.org
|
htpdate -s -p http www.pool.ntp.org
|
||||||
```
|
```
|
||||||
|
|
||||||
Mix http url and https url
|
Mix http and https URLs
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
htpdate -s http://www.pool.ntp.org https://www.openssl.org
|
htpdate -s http://www.pool.ntp.org https://www.openssl.org
|
||||||
|
@ -37,11 +37,13 @@ htpdate -s www.pool.ntp.org
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
`htpdate [options...] urls...`
|
|
||||||
|
`htpdate [options...] URLs...`
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
```
|
```
|
||||||
-c, --count The number of requests for each url
|
-c, --count The number of requests for each URL
|
||||||
Default: 4
|
Default: 4
|
||||||
|
|
||||||
-C, --command Command to adjust system time, in https://day.js.org/ display format
|
-C, --command Command to adjust system time, in https://day.js.org/ display format
|
||||||
|
@ -57,7 +59,7 @@ htpdate -s www.pool.ntp.org
|
||||||
-m, --method HTTP method
|
-m, --method HTTP method
|
||||||
Default: 'HEAD'
|
Default: 'HEAD'
|
||||||
|
|
||||||
-p, --protocol Use this protocol when no protocol is specified in the url
|
-p, --protocol Use this protocol when no protocol is specified in the URL
|
||||||
Default: 'https'
|
Default: 'https'
|
||||||
|
|
||||||
-r, --redirect If redirect responses should be followed
|
-r, --redirect If redirect responses should be followed
|
||||||
|
@ -81,10 +83,11 @@ htpdate -s www.pool.ntp.org
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
### Precompiled package
|
- Precompiled package
|
||||||
|
|
||||||
Download the precompiled binary package from [Releases page](https://github.com/bobwen-dev/htpdate/releases), uncompress it, and run it independently as an executable
|
Download the precompiled binary package from [Releases page](https://github.com/bobwen-dev/htpdate/releases), uncompress it, and run it independently as an executable
|
||||||
|
|
||||||
### Install by npm
|
- Install by npm
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm i -g https://github.com/bobwen-dev/htpdate
|
npm i -g https://github.com/bobwen-dev/htpdate
|
||||||
|
|
Loading…
Reference in New Issue