@@ -17,21 +17,21 @@ This module works best with [memory-fs](https://github.com/webpack/memory-fs).
17
17
Install package:
18
18
19
19
``` bash
20
- yarn add httpfs
20
+ yarn add htfs
21
21
```
22
22
23
23
OR
24
24
25
25
``` bash
26
- npm install httpfs
26
+ npm install htfs
27
27
```
28
28
29
29
## Server
30
30
31
31
Serving real fs is not a good idea. In this example we serve a virtual filesystem.
32
32
33
33
``` js
34
- const HTTPFSMiddleware = require (' httpfs /lib/middleware' )
34
+ const HTTPFSMiddleware = require (' htfs /lib/middleware' )
35
35
const express = require (' express' )
36
36
const MFS = require (' memory-fs' )
37
37
@@ -58,7 +58,7 @@ Supported methods:
58
58
- ` readFile(path): Promise<String> `
59
59
60
60
``` js
61
- const HTTPFSAClient = require (' httpfs /lib/client' )
61
+ const HTTPFSAClient = require (' htfs /lib/client' )
62
62
63
63
const fs = new HTTPFSAClient ({
64
64
endpoint: ' http://localhost:8080/mfs'
@@ -82,20 +82,20 @@ MIT. Made with 💖
82
82
[ standard-src ] : https://flat.badgen.net/badge/code%20style/standard/green
83
83
[ standard-href ] : https://standardjs.com
84
84
85
- [ npm-v-src ] : https://flat.badgen.net/npm/v/httpfs /latest
86
- [ npm-v-href ] : https://npmjs.com/package/httpfs
85
+ [ npm-v-src ] : https://flat.badgen.net/npm/v/htfs /latest
86
+ [ npm-v-href ] : https://npmjs.com/package/htfs
87
87
88
- [ npm-dt-src ] : https://flat.badgen.net/npm/dt/httpfs
89
- [ npm-dt-href ] : https://npmjs.com/package/httpfs
88
+ [ npm-dt-src ] : https://flat.badgen.net/npm/dt/htfs
89
+ [ npm-dt-href ] : https://npmjs.com/package/htfs
90
90
91
- [ packagephobia-src ] : https://flat.badgen.net/packagephobia/install/httpfs
92
- [ packagephobia-href ] : https://packagephobia.now.sh/result?p=httpfs
91
+ [ packagephobia-src ] : https://flat.badgen.net/packagephobia/install/htfs
92
+ [ packagephobia-href ] : https://packagephobia.now.sh/result?p=htfs
93
93
94
- [ david-src ] : https://flat.badgen.net/david/dep/jsless/httpfs
95
- [ david-href ] : https://david-dm.org/jsless/httpfs
94
+ [ david-src ] : https://flat.badgen.net/david/dep/jsless/htfs
95
+ [ david-href ] : https://david-dm.org/jsless/htfs
96
96
97
- [ codecov-src ] : https://flat.badgen.net/codecov/c/github/jsless/httpfs /master
98
- [ codecov-href ] : https://codecov.io/gh/jsless/httpfs
97
+ [ codecov-src ] : https://flat.badgen.net/codecov/c/github/jsless/htfs /master
98
+ [ codecov-href ] : https://codecov.io/gh/jsless/htfs
99
99
100
- [ circleci-src ] : https://flat.badgen.net/circleci/github/jsless/httpfs /master
101
- [ circleci-href ] : https://circleci.com/gh/jsless/httpfs
100
+ [ circleci-src ] : https://flat.badgen.net/circleci/github/jsless/htfs /master
101
+ [ circleci-href ] : https://circleci.com/gh/jsless/htfs
0 commit comments