nopain

1.0.1 • Public • Published

nopain usage

Import nopain like this

require { nopain } = require("nopain")

then use this line of code below to create a webserver way too easy.

nopain("public", 4200)

You can change the "public" in the example to anything you want. The given folder will be the root (/) of the website. The port "4200" in the example can be changed to any port you want, make sure it is NOT taken by another program. If the port is 80 then the URL will just be http://localhost instead of http://localhost:PORT!

Package Sidebar

Install

npm i nopain

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

1.51 kB

Total Files

3

Last publish

Collaborators

  • sevenworks