Socket
Socket
Sign inDemoInstall

netrc-parser

Package Overview
Dependencies
1
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    netrc-parser

netrc parser


Version published
Weekly downloads
44K
decreased by-2.14%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

netrc-parser

CircleCI codecov

API

Netrc

src/netrc.js:183-274

parses a netrc file

constructor

src/netrc.js:191-200

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:215-239

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

Last updated on 09 Mar 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc