$ cnpm install netrc-parser
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
Copyright 2013 - present © cnpmjs.org | Home |