Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ma2gedev/netrcex
Reads netrc files implemented in Elixir
https://github.com/ma2gedev/netrcex
Last synced: 25 days ago
JSON representation
Reads netrc files implemented in Elixir
- Host: GitHub
- URL: https://github.com/ma2gedev/netrcex
- Owner: ma2gedev
- License: mit
- Created: 2014-11-11T13:31:38.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-15T13:43:56.000Z (about 9 years ago)
- Last Synced: 2024-11-01T08:33:46.707Z (about 1 month ago)
- Language: Elixir
- Size: 242 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Reads netrc files implemented in Elixir. (Miscellaneous)
- fucking-awesome-elixir - netrc - Reads netrc files implemented in Elixir. (Miscellaneous)
- awesome-elixir - netrc - Reads netrc files implemented in Elixir. (Miscellaneous)
README
# Netrc - Reads netrc files implemented in Elixir
[![hex.pm version](https://img.shields.io/hexpm/v/netrc.svg)](https://hex.pm/packages/netrc) [![hex.pm downloads](https://img.shields.io/hexpm/dt/netrc.svg)](https://hex.pm/packages/netrc) [![Build Status](https://travis-ci.org/ma2gedev/netrcex.svg?branch=master)](https://travis-ci.org/ma2gedev/netrcex) [![Coverage Status](https://img.shields.io/coveralls/ma2gedev/netrcex.svg)](https://coveralls.io/r/ma2gedev/netrcex)
## Installation
Add `:netrc` library to your project's dependencies in `mix.exs`:
```elixir
defp deps do
[
{:netrc, "~> 0.0.1"}
]
end
```And fetch:
```
$ mix deps.get
```## Usage
### Read netrc files
Read the user's default netrc file:
```
iex> Netrc.read
%{"api.github.com" => %{"login" => "username", "password" => "pass"}}
```Read the specific file path:
```
iex> Netrc.read("test/data/sample.netrc")
%{"m" => %{"login" => "l", "password" => "p"}}
```## License
Copyright © 2014-2015 Takayuki Matsubara, released under the MIT license.