Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

humming

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

humming

hapi plugin to generate crud routes for all models in a folder

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

marble-run

hapi plugin to generate CRUD routes for all models in a folder

use


var hapi = require("hapi");
var server = hapi.createServer();

server.connections({ port: 8000 });

server.register({
    register: require("marble-run"),
    options: {
        modelsPath: "/models",
        adapter: require("russian-doll")
    }

}, function (e) {

   server.start();
});

api

marble-run is registered using hapi's server.register(); method.

You may pass a modelsPath option to point marble-run at where to find your models.

You must pass an adapter option. The adapter must contain a function that takes a database and a collection parameter and returns an object with a .create, .update, .delete, and .findOne method.

license

MIT

Keywords

FAQs

Package last updated on 01 May 2015

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc