Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

exframe-rest

Package Overview
Dependencies
6
Maintainers
2
Versions
25
Issues
File Explorer

Advanced tools

exframe-rest

Rest framework module

    3.4.1latest
    npm

Version published
Maintainers
2
Weekly downloads
394
decreased by-30.51%

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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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