https://github.com/dfurnes/hey
💬 Friendly command-line HTTP client.
https://github.com/dfurnes/hey
cli command-line-tool curl development http-client javascript nodejs wget
Last synced: about 1 month ago
JSON representation
💬 Friendly command-line HTTP client.
- Host: GitHub
- URL: https://github.com/dfurnes/hey
- Owner: DFurnes
- License: mit
- Created: 2017-02-19T19:36:39.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2020-07-03T21:36:13.000Z (over 5 years ago)
- Last Synced: 2025-06-14T07:43:20.511Z (4 months ago)
- Topics: cli, command-line-tool, curl, development, http-client, javascript, nodejs, wget
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
hey (n.) – A friendly command-line tool for making HTTP requests.
### Installation
You can install __Hey__ using [npm](https://npmjs.org):```
npm install -g @dfurnes/hey
```### Customization
You can set aliases and default request options by creating a `.hey.js` file in your home directory. For example:```js
module.exports = function(hey) {
return {
sites: {
   'www.example.com': {
   // ↓ You can add aliases for favorite sites, so you can just
// type `hey get example/page` to load "www.example.com/page`!
alias: 'example',
// ↓ If a site should always use HTTPS, set the `forceSecure` flag!
forceSecure: true,// ↓ You can set default headers to be used on all requests:
headers: {
'X-Secret-API-Key': '5RROHSzXQwJ9douud9u5Ln4BR'
},
},
'www.example.org': {
alias: 'auth-example',
forceSecure: true,
// ↓ Automatically load password from the system keychain and set HTTP Basic Auth
// header by using `hey.basicauth('')`. Will prompt on first request.
auth: hey.basicauth('username@example.com'),
},
},
};
};```
### License
MIT © [David Furnes](https://dfurnes.com)