ishh.js

1.0.1 • Public • Published

ishh.js

The simplest http server creator for beginners on node.js!

Install

npm i ishh.js | yarn add ishh.js

Example

const { Server } = require("ishh.js")
const f = new Server({
  port: 3000 // Your port here
})
    f.start() // Start the server

f.homepage(process.cwd()+'/index.html') // Homepage to send on path:  /

f.send({
 path: "/shit",
  file: process.cwd()+'/shit.html'
       }) // this will send file shit.html to path:  /shit

f.unfoundPage(process.cwd()+'/404.html') // 404 page setup to send on unfound pages

Package Sidebar

Install

npm i ishh.js

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.42 kB

Total Files

7

Last publish

Collaborators

  • ishh-xd
  • ishh404