Socket
Socket
Sign inDemoInstall

exframe-rest

Package Overview
Dependencies
109
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

exframe-rest

Rest framework module


Version published
Maintainers
2
Weekly downloads
537
increased by15.98%

Weekly downloads

Readme

Source

exframe Rest Module

A wrapper around express to provide restful routing for the Harmony Framework.

###Features

  • Defaults to port 8080
  • Assumes JSON for the payload
  • Sets HTTP access control headers (CORS)

###Use

const app = require('exframe-rest').create(process.env.PORT);

app.post('/test', (req, res) => {
  res.json({'result': 1})
});

###Tests

npm run test

FAQs

Last updated on 31 Oct 2022

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