Socket
Socket
Sign inDemoInstall

@anarklab/expressive-controller

Package Overview
Dependencies
123
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @anarklab/expressive-controller

Controller extensible for expressive


Version published
Maintainers
1
Install size
13.9 MB
Created

Readme

Source

@anarklab/expressive-controller

Install

yarn add @anarklab/expressive-controller

# or if you use npm
npm install @anarklab/expressive-controller --save

Usage

const Books = require('./repository')
const { Controller } = require('@anarklab/expressive-controller')
const BookControoler = Controller(Books)

module.exports = Controller(Books)

module.exports = {
  index: BookControoler.index,
  show: BookControoler.show,
  store: BookControoler.store,
  update: BookControoler.save,
  destroy: BookControoler.remove
}

This exports an object with the methods below:

{
  index,
  show,
  store,
  update,
  destroy
}

TO DO

  • More detailed documentation
  • CHANGELOG
  • CONTRIBUTING
  • Tests

Keywords

FAQs

Last updated on 08 Apr 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