FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gitcloud-client/gitcloud.js at master · nativefier/gitcloud-client · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
nativefier
/
gitcloud-client
Public archive
Notifications
You must be signed in to change notification settings
Fork
4
Star
2
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
gitcloud-client
/
gitcloud.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (17 loc) · 476 Bytes
Breadcrumbs
gitcloud-client
/
gitcloud.js
Copy path
File metadata and controls
21 lines (17 loc) · 476 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const
axios
=
require
(
'axios'
)
;
const
cheerio
=
require
(
'cheerio'
)
;
function
gitCloud
(
pageUrl
)
{
return
axios
.
get
(
pageUrl
)
.
then
(
function
(
response
)
{
const
$
=
cheerio
.
load
(
response
.
data
)
;
const
fileIndex
=
$
(
'#file-index'
)
.
find
(
'a'
)
.
map
(
(
index
,
element
)
=>
{
const
elementJq
=
$
(
element
)
;
return
{
name
:
elementJq
.
text
(
)
,
url
:
elementJq
.
attr
(
'href'
)
}
;
}
)
.
get
(
)
;
return
fileIndex
;
}
)
;
}
module
.
exports
=
gitCloud
;
Back
|
FazBrowse Home
|
New Git URL