sails-inject-models

0.0.2 • Public • Published

-inject-models

NPM version Build status Dependency Status

Install

$ npm install sails-inject-models --save

Usage

e.g. with sails-permissions:

// api/hooks/permissions.js
module.exports = require('sails-permissions');

The additional models User, Role, Permission, and Model will be initialized and available in the global namespace.

License

MIT

Attribution

Much of this implementation is adapted from:

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0

Package Sidebar

Install

npm i sails-inject-models

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • tjwebb