npm install @dfurnes/hey
hey (n.) – A handy command-line tool for making HTTP requests.
```
npm install -g @dfurnes/hey
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!forceSecure flag! // ↓ 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'),
},
},
};
};
```