An open API service indexing awesome lists of open source software.

https://github.com/shysolocup/fetchfile

JavaScript package letting you more easily fetch files from a github repo
https://github.com/shysolocup/fetchfile

file files git github javascript js node-js package repository

Last synced: 3 months ago
JSON representation

JavaScript package letting you more easily fetch files from a github repo

Awesome Lists containing this project

README

          

# fetchfile
JavaScript package letting you more easily fetch files from a github repo

does most of the work for you instead of having to go through a bunch of json data to find things

- easy to use
- open source


```console
npm i fetchfile
```
```console
npm i paishee/fetchfile
```


JSOutput


```js
const fetchfile = require('fetchfile');

fetchfile("https://github.com/paishee/aepl/blob/main/src/functions/AeplAddFunction.js")
.then( (file) => {
console.log(file)
});
```

```js
FetchedFile {
name: 'AeplAddFunction.js',
url: 'https://github.com/paishee/aepl/blob/main/src/functions/AeplAddFunction.js',
type: 'JavaScript',
code: '...',
lines: [...],
path: 'src/functions/AeplAddFunction.js',
tree: {
'src/functions': { items: [...], totalCount: 14 },
src: { items: [...], totalCount: 4 },
'': { items: [...], totalCount: 5 }
},
repo: {...},
payload: {...},
blob: {...},
data: {...}
}
```