🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

moonext

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moonext

Back-end framework, for anything

1.0.3
latest
Source
npm
Version published
Maintainers
1
Created
Source

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!")
})

Keywords

Back-end

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