Skip to content

jdx/node-netrc-parser

Repository files navigation

netrc-parser

Greenkeeper badge CircleCI Build status codecov npm npm npm David

API

Netrc

parses a netrc file

Examples

const netrc = require('netrc-parser').default
netrc.loadSync() // or netrc.load() for async
netrc.machines['api.heroku.com'].password // get auth token from ~/.netrc
netrc.saveSync() // or netrc.save() for async