FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
random-access-http/example.js at master · random-access-storage/random-access-http · GitHub
random-access-storage
/
random-access-http
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
42
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
random-access-http
/
example.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (10 loc) · 298 Bytes
Breadcrumbs
random-access-http
/
example.js
Copy path
File metadata and controls
12 lines (10 loc) · 298 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
var
raHttp
=
require
(
'./'
)
var
file
=
raHttp
(
'/readme.md'
,
{
url
:
'https://raw.githubusercontent.com/e-e-e/http-random-access/master/'
}
)
file
.
read
(
2
,
10
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
'Something went wrong!'
)
console
.
log
(
err
)
return
}
console
.
log
(
data
.
toString
(
)
)
}
)
Back
|
FazBrowse Home
|
New Git URL