node package manager


a collection of plugins used in my projects for mongoose


A small collection of mongoose extensions to be used in my projects.

Current modules:

creates unique slugs for assigned items.

helps maintaining hierarchical items. use array of ancestors pattern can be seen here:

adds status field and adds static methods:

  • publishDocument,
  • unPublishDocument
  • trashDocument.
model.publishDocument(id, function(err, result) {