Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ipfs-node-server-static

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-node-server-static - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

ipfs

2

package.json
{
"name": "ipfs-node-server-static",
"version": "1.1.1",
"version": "1.1.2",
"description": "Static file server middleware for ipfs",

@@ -5,0 +5,0 @@ "main": "index.js",

IPFS Middleware
===============
Server ipfs objects from `/ipfs/` on a server.
Server ipfs objects from `/ipfs/` on a server through the API
interface.
By default only objects are served and actual api access is disabled.
See other options at the end to enable the API.
If you wish to simply serve static files through the ipfs gateway
I guess you guys [proxy-middleware](https://www.npmjs.com/package/proxy-middleware)
Install

@@ -62,2 +69,8 @@ ```

`api`: true - Enables api pass through via /api/
*API*
By default `ipfs-node-server-static` uses the api to fullfil requests. You
can enable the pass of `/api/` as well by passing true to the `api` option.
```
var ipfs_static = require('./')('localhost', 5001, {api: true})
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc