Deprecated Express library that automatically generates RESTful API endpoints from Mongoose models. At version 2.6.1, it provided a one-liner to create CRUD routes for Express apps with Mongoose. No longer actively maintained; alternatives include nestjsx/crud or manual route definitions. Key differentiator: minimal setup for quick REST APIs, but lacks flexibility and modern features like validation or middleware composition.
npm install resourcejsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates full REST API (GET, POST, PUT, DELETE) for a Mongoose User model with default routes.
Migrate to a maintained alternative like @nestjsx/crud or express-restify-mongoose.
Update to new signature: resource(app, basePath, resourceName, model, options).rest()
Ensure Mongoose models use async/await and do not rely on callback-based queries.
Switch to ES modules or use dynamic import: const resource = await import('resourcejs');Use import resource from 'resourcejs'; or const resource = require('resourcejs').default;Downgrade to Mongoose 7.x or migrate to a different library.