Socket
Socket
Sign inDemoInstall

netrc-parser

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netrc-parser

netrc parser


Version published
Weekly downloads
45K
decreased by-11.14%
Maintainers
1
Weekly downloads
 
Created
Source

netrc-parser

CircleCI codecov

API

Netrc

src/netrc.js:211-318

parses a netrc file

constructor

src/netrc.js:219-228

generates or parses a netrc file

Parameters

  • file string

Examples

const Netrc = require('netrc-parser')
const netrc = new Netrc()
netrc.machines['api.heroku.com'].password // get auth token from ~/.netrc

save

src/netrc.js:243-267

save the current home netrc with any changes

Examples

const Netrc = require('netrc-parser')
const netrc = new Netrc()
netrc.machines['api.heroku.com'].password = 'newpassword'
netrc.save()

Keywords

FAQs

Package last updated on 02 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc