File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
- # 🇭TTP 🇫ilesystem
1
+ # HTTP Filesystem
2
2
3
3
[ ![ Standard JS] [ standard-src ]] [ standard-href ]
4
4
[ ![ david dm] [ david-src ]] [ david-href ]
5
5
[ ![ codecov] [ codecov-src ]] [ codecov-href ]
6
6
[ ![ circleci] [ circleci-src ]] [ circleci-href ]
7
-
8
7
[ ![ npm version] [ npm-v-src ]] [ npm-v-href ]
9
8
[ ![ npm downloads] [ npm-dt-src ]] [ npm-dt-href ]
10
9
[ ![ package phobia] [ packagephobia-src ]] [ packagephobia-href ]
11
10
12
- ### ** NOTE** This module is under development and not ready for any production use!
13
-
14
11
Expose filesystem via HTTP and access it from the other side!
15
12
16
13
This module works best with [ memory-fs] ( https://github.com/webpack/memory-fs ) .
@@ -51,7 +48,7 @@ mfs.writeFileSync('/test/file.txt', 'Works!')
51
48
app .use (' /mfs' , HTTPFSMiddleware (mfs))
52
49
```
53
50
54
- You can now browse filesystem via a normal browser via http://localhost:8080/mfs/
51
+ You can now browse filesystem with broweser: http://localhost:8080/mfs/
55
52
56
53
## Client
57
54
@@ -74,8 +71,8 @@ fs.readFile('/test/file.txt').then((contents) => {
74
71
75
72
### Options
76
73
77
- - ` endpoint ` : HTTP Endpoint of server
78
- - ` maxAge ` : Time for cache
74
+ - ` endpoint ` : Address endpoint of server
75
+ - ` maxAge ` : Time to keep requests in cache
79
76
80
77
## License
81
78
You can’t perform that action at this time.
0 commit comments