needle
needle copied to clipboard
Use .netrc for preconfigured authentication
Frequently authentication needs to be configured outside the code. Quite standard approach in Unix world is to store those credentials in ~/.netrc and this is widely supported in HTTP clients, i.e. wget, curl or python-requests. Please include support for auto-reading credentials from ~/.netrc as well (I believe there is an npm module for parsing that).
I'd be happy to merge this if you submit a PR, as long as reading/parsing that file is optional (eg if { use_netrc: true }
is present).