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
- Host: GitHub
- URL: https://github.com/shysolocup/fetchfile
- Owner: shysolocup
- License: mit
- Created: 2024-01-17T17:17:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T17:37:19.000Z (over 2 years ago)
- Last Synced: 2025-01-29T14:17:07.918Z (over 1 year ago)
- Topics: file, files, git, github, javascript, js, node-js, package, repository
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: {...}
}
```