Socket
Socket
Sign inDemoInstall

methor

Package Overview
Dependencies
8
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    methor

Method-oriented layer for modern web ( Facebook api inspired )


Version published
Weekly downloads
82
increased by1540%
Maintainers
1
Install size
4.26 MB
Created
Weekly downloads
 

Readme

Source

Methor

NPM download License

Nodejs web application framework inspired by Facebook API

http://methor.clgt.io

Example

Install

$ npm install methor --save

USAGE

const Methor = require('methor')
const path = require('path')
const app = new Methor({
  port: 3004,
  methods: {
    user
  },
  created(port, server) {
    console.log('app started at port %d', port)
    this.get('/logout', (req, res) => {
      res.end('ahihi do ngok')
    })
  }
})
// app.get, app.post, ... many features
// curl http://localhost:3004/restserver?method=user.login

Keywords

FAQs

Last updated on 10 Jul 2018

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