New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

loopback-base-model

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

loopback-base-model

Loopback base model to provide which endpoints to share

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

loopback-base-model

Loopback Base Model

  • npm install loopback-base-model --save
  • within server/server.js add require('./base-model') app

yourmodel.json

name: "YourModel"
base: "BaseModel"

defaultMethods: [ 'find', 'create' ] // only enable find and create endpoint
defaultMethods: [ 'all' ] // enable all default endpoints
defaultMethods: [ 'none' ] // dont expose any endpoints
defaultMethods: [ 'extended' ] // enable all default endpoints + findOrCreate endpoint

License: MIT

FAQs

Package last updated on 16 Jul 2016

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