Socket
Socket
Sign inDemoInstall

exframe-rest

Package Overview
Dependencies
108
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
Weekly downloads
457
decreased by-10.74%
Maintainers
2
Install size
2.19 MB
Created
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 10 Oct 2023

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