Socket
Socket
Sign inDemoInstall

moonext

Package Overview
Dependencies
36
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

moonext

Back-end framework, for anything


Version published
Maintainers
1
0

Weekly downloads

Readme

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

FAQs

Last updated on 14 Apr 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc