localhost

0.4.1 • Public • Published

localhost

Static file server which returns files regardless of the header method - unlike popular others.

Embed within a NodeJS script

npm install localhost --save-dev
import localhost from 'localhost';
localhost('./').listen(port);

Save globally and run as an executable

localhost [directory] [-p portNumber|8080]

npm install -g localhost
cd ./www/
localhost

Run using npx

cd ./www/
npx localhost

Readme

Keywords

none

Package Sidebar

Install

npm i localhost

Weekly Downloads

39

Version

0.4.1

License

BSD

Unpacked Size

5.19 kB

Total Files

6

Last publish

Collaborators

  • adodson