https://github.com/tabcat/ipfs-serve
host a static directory over http and ipfs
https://github.com/tabcat/ipfs-serve
Last synced: 7 months ago
JSON representation
host a static directory over http and ipfs
- Host: GitHub
- URL: https://github.com/tabcat/ipfs-serve
- Owner: tabcat
- License: mit
- Created: 2020-03-26T20:52:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-03T19:36:40.000Z (almost 6 years ago)
- Last Synced: 2025-03-05T22:25:37.641Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/@tabcat/ipfs-serve)
# ipfs-serve
host a static directory over http and ipfs
## Usage
install with npm:
```
npm install @tabcat/encrypted-docstore
```
use in an npm script:
```js
// package.json
"scripts": {
"serve": "ipfs-serve -r ./build"
}
```
#### Options:
- -V, --version: output the version number
- -d, --debug: output debug to console
- -r, --repo : root directory of repo to host (default: "./build")
- -i, --ipfs
: ipfs daemon api address, falls back to a js-ipfs node (default: "js-ipfs")
- -p, --port : port to host repo on http gateway (default: "3000")
- --jrepo : specify directory of js-ipfs repo (default: process.cwd() + "/ipfs-serve")
- --joffline: run js-ipfs offline
- --no-http: do not host with http
- --no-open: do not open in new browser tab
- -h, --help: output usage information