Unified MVC-style model structure for Node.js projects using mongoose and/or sequelize ORMs. Current version 0.1.1, last updated in 2015. Allows defining models in separate files with connectors, attributes, and extensions. Differentiator: provides a structured way to organize models when using multiple databases or ORMs. Release cadence: no recent releases.
npm install orm-modelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows setup of connectors, model loading, and basic model usage.
Consider alternatives like sequelize-cli or mongoose schemas directly.
Verify your ORM is supported before adoption.
Always specify connectorsPath and modelsPath in orm.connect().
Wrap model access in try/catch or check existence with orm.models().
npm install orm-model --save
Use correct import: const orm = require('orm-model'); or import orm from 'orm-model'; if using ESM bundler.Check connectorsPath file and ensure connector key matches 'connector' field in model file.