An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![npm (scoped)](https://img.shields.io/npm/v/@tabcat/ipfs-serve)](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