Socket
Book a DemoInstallSign in
Socket

netrc2

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netrc2

Parse netrc files with a simple API

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

netrc2 Circle CI

Simple utility to read and save netrc files.

Why netrc2? Because "netrc" is already taken on npm.

Installation

npm install netrc2 --save

Usage

Note: netrc2 is a synchronous module.

var netrc = require('netrc2');

var machines = netrc(); // read .netrc in $HOME

var auth = machines['example.com'];
var login = auth[0];
var password = auth[1];

machines['example.com'] = ['new login', 'new password'];
machines.save();

Tests

make test

License

netrc2 is released under the MIT License.

Keywords

netrc

FAQs

Package last updated on 04 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts