mox-server

0.2.0 • Public • Published

A tiny server for hosting noxmox mox data (emulated S3 data) as text/html on localhost.

Use: require("mox-server").runServer(port, onstarthandler)

port and the onstarthandler callback are optional, but when passed should be a number, and a parameter-less callback function, respectively.

This server simply looks at the mox directory and tries to resolve files to content from buckets.

mox-server is smart enough not to run multiple times if you use it across multiple projects, so if you fire it up several times on the same port, it'll gracefully not run beyond the first call.

Readme

Keywords

none

Package Sidebar

Install

npm i mox-server

Weekly Downloads

0

Version

0.2.0

License

none

Last publish

Collaborators

  • pomax