axios

axios is a simple, zero-configuration command-line http server. Inspired by npm's http-server. In fact this package's API tries to closely match that of the API of http-server.

Install

dart pub global activate axios

Usage

axios [options] [path]

Options

OptionAbbreviationDescriptionDefault
--address-aDefines address to listen on0.0.0.0
--port-pDefines which port to listen on8080
--silent-sSuppress log messages from outputfalse
--directory-dAllows directory listingtrue
--version-vPrints current axios version

The path defaults to current directory ./ unless otherwise specified.

Upcoming features

  • CORS
  • TLS/SSL

Libraries

axios