🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moonext

Back-end framework, for anything

1.0.3
latest
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

Moonext

Back-end framework for anything!

NPM - Click here

GITHUB - Click here

At the moment, the framework is under development, so it is not recommended for now to use it in commercial projects

Install:

$ npm install moonext

OR

$ yarn add moonext

Usage

Code example:
const Moonext = require("moonext")

Moonext.listen(3000, () => {
  console.log("Started on localhost:3000")
})
Method listen:

Started server on localhost. First argument is port, second argument callback, when server started (second argument is not obligatory)

Moonext.listen(3000) // http://localhost:3000

// OR

Moonext.listen(3000, () => {
  console.log("Started on localhost:3000")
})
Method add

Adds a function to be generated on localhost, takes two parameters: req and res

Moonext.add((req, res) => {
  req.end("Hello from node http!")
})

FAQs

Package last updated on 14 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts