New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

octokit-auth-netrc

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

octokit-auth-netrc

netrc auth plugin for Octokit

  • 1.0.0-alpha.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

octokit-auth-netrc

netrc auth plugin for Octokit

Build Status Codecov

Table of Contents

Usage

MIT license npm Try octokit-auth-netrc on RunKit

Installation

$ npm install octokit-auth-netrc --save-prod

Example

Import
import {createNetrcAuth} from 'octokit-auth-netrc';
  [`${process.env.HOME}/.netrc`]: `
machine api.github.com
  login asdflkajsdflkjadlfjalsdkfjalsdfja
`
});
Authenticate
const auth = createNetrcAuth();

(async () => {
  await auth();
})();

API

createNetrcAuth

returns an object with an auth() method

auth()

The auth() method has no options. It returns a promise which resolves with the authentication object.

Authentication object
name type description
type string "token"
token string The provided token.

Contributing

PRs Welcome Conventional Commits Commitizen friendly semantic-release Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test

FAQs

Package last updated on 09 Jul 2020

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