netrcx

Build Status License

A working netrc reader and parser for Ruby.

Usage (Ruby)

require 'netrcx'

# Read from default location
netrc = Netrcx.read

# Read the default entry (if set)
netrc.default # => #<Netrcx::Entry default=true, login="me">

# Find a specific entry
netrc['github.com'] # => #<Netrcx::Entry default=false, host=github.com, login="s3cret/t0ken">