File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ This module provides you random access to a file hosted over http so that it can
17
17
## Usage
18
18
19
19
``` js
20
- var randomAccessHttp = require (' random-access-http' )
20
+ var randomAccessHTTP = require (' random-access-http' )
21
21
22
- var file = randomAccessHttp (' http://example.com/somefile.mp4' )
22
+ var file = randomAccessHTTP (' http://example.com/somefile.mp4' )
23
23
24
24
// Read 10 bytes at an offset of 5
25
25
file .read (5 , 10 , function (err , buffer ) {
@@ -34,7 +34,7 @@ file will use a keepalive agent to reduce the number http requests needed for th
34
34
35
35
## API
36
36
37
- #### ` var file = randomAccessFile (url) `
37
+ #### ` var file = randomAccessHTTP (url) `
38
38
39
39
Create a new 'file' that reads from the provided ` url ` . The ` url ` can be either ` http ` or ` https ` .
40
40
You can’t perform that action at this time.
0 commit comments