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

get-github-file

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-github-file

Get a file from a github repository

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

get-github-file

Get a file from a github repository

Installation

Grab it from npm

npm install get-github-file

Usage

const getGithubFile = require('get-github-file');
getGithubFile('nerdlabs/get-github-file/package.json')
  .then(buffer => console.log(buffer.toString('utf-8')));

Parameters

getGithubFile(uri: string, options?: Options): Promise<Buffer>

uri: A string to identify a file in a github repository user/repo/path/to/file.txt

options:

  • auth: authentication object
  • branch: specify a different branch than the repository's default_branch (usually master)
  • client: an instance of the github client.

Built by (c) nerdlabs. Released under the MIT license.

Keywords

FAQs

Package last updated on 30 Oct 2016

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