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

down-git-files

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

down-git-files

Download github files with API.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-98.47%
Maintainers
1
Weekly downloads
 
Created
Source

down-git-files

down-git-files provides methods for download files in public github repositories

Open Source Love MIT Licence npm version npm downloads All Contributors

:rocket: How use🛠️ Tools:pencil: Contributing:adult: Thanks:page_facing_up: License

:rocket: How use

Instalation:

npm install down-git-files
#or
yarn add down-git-files

Answer the questions (When choosing the tool, use the arrows keys to navigate, the spacebar to select and enter to finish)

🛠️ Tools

Example:

fileRequest

Get file content from github.

import { fileRequest } from "down-git-files";

const main = async () => {
  const response = await fileRequest({
    user: "wesleyara",
    repo: "down-git-files",
    path: "commitlint.config.js",
    branch: "main",
  });

  console.log(response);
};

main();

and create a file with the content

import { fileRequest } from "down-git-files";

const main = async () => {
  const response = await fileRequest({
    user: "wesleyara",
    repo: "down-git-files",
    path: "commitlint.config.js",
    branch: "main",
    file: "commitlint.config.js",
  });

  console.log(response);
};

main();

for more information, see the docs, Vanilla and React

:pencil: Contributing

Your contribution to the down-git-files is essential for the evolution of the project, you can do it as follows:

  • Open an issue to clear doubts, report bugs or give ideas
  • Open a pull request to give ideas for code improvement, implementation of new features and bug fixes

These are just some of the ways you can contribute to the project read the CONTRIBUTING for more information

:adult: Authors


Wesley Araújo

✨ Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

:page_facing_up: License

down-git-files is a open source project licensed as MIT.

Keywords

FAQs

Package last updated on 21 Dec 2022

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