Socket
Book a DemoInstallSign in
Socket

express-radical

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-radical

Simple, opinionated RAD middleware for express.

1.0.0-alpha
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Radical

Simple, opinionated RAD middleware for express.

Radical builds a RESTful API on top of express, based on your JSON Schemas. Different drivers for data storage are available (In-Memory, Mongo, Redis, Postgres).

Rather than building your mock API time and time again, just throw some schemas at Radical and let it do its magic.

Batches

  • Installation
  • Usage
  • Options
  • License
  • Author

Installation

npm install express-radical

Usage

const express = require('express')
const radical = require('express-radical')

const app = radical(express(), 'path/to/schemas')
app.listen(process.env.PORT || 8080, () => console.log(`(Radical) express listening on *:${process.env.PORT || 8080}`)

Features

  • Automatically routes GET, POST, PUT, PATCH and DELETE verbs
  • When creating a resource, the JSON payload will be validated against your schema

Options

  • Path to schemas
  • single schemas

License

MIT License

Author

Robert Vogt

FAQs

Package last updated on 08 Feb 2017

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.