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

svc-fbr

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svc-fbr

file browser service

  • 0.0.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

svc-fbr

File Browser Service

node npm Travis Gemnasium Coveralls

terminal usage:

svc-fbr: file browser service

    ?, status      check status of service
    H, help        show this help information
    V, version     show version information
    s, start       start service
    x, stop        stop service

See https://github.com/forfutureLLC/svc-fbr for feature-requests and bug-reports

Module API:

const fbr = require("svc-fbr");

fbr.start([options [, callback]])

Start the service.

  • options (Object): as universal Options
  • callback (Function):
    • signature: callback(err)

fbr.ping([options [, callback]])

Ping the service.

  • options (Object): as universal Options
  • callback (Function):
    • signature: callback(err, response)
    • response (Object): passed on success
    • response.running (Boolean)

fbr.stop([options [, callback]])

Stop the service.

universal options

Prescedence:

  • ip (String): ip of server
    • arguments
    • ${FBRS_IP}
    • "127.0.0.1"
  • port (Number): port of the server
    • arguments
    • ${FBRS_PORT}
    • 9432
  • home: (String) path to home directory
    • arguments
    • ${FBRS_HOME}
    • process.env.HOME

REST API:

Available endpoints once the service is started.

traversal of file-system:

GET /

Queries:

  • path (String): path to look up.

Success response:

  • status: 200 OK
  • body:
{
  "content": <content>,
  "<type>": true
}

where <content> would be: * String[]: array of file names, if path points to directory * String: file content, if path points to file and <type> would be the name of fs.Stats function name e.g. "isDirectory".

ping service:

GET /ping

Success response:

  • status: 200 OK

stopping service:

GET /stop

Success response:

  • status: 200 OK

tips:

To start the service as daemon, use forever:

$ forever start svc-fbr start    # note the TWO <start>s

license:

The MIT License (MIT)

Copyright (c) 2015 Forfuture LLC we@forfuture.co.ke

Keywords

FAQs

Package last updated on 09 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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