npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mongoo

v0.3.5

Published

A collection of essential plugins and utilities for working with MongoDB and Mongoose

Downloads

76

Readme

mongoo

A collection of essential plugins and utilities for working with MongoDB and Mongoose.

Getting Started

Install the module with: npm install mongoo

var mongoo = require('mongoo');

Documentation

Currently includes the following plugins:

  • encrypt_path - create a path encrypted on save
  • confirm_path - create a path that requires a matching virtual confirmation path before being set
  • timestamps - add created and updated timestamps to a model
  • path_token - require an expiring token to update a path (i.e. password reset)
  • start_end - add validator to ensure one date path does not follow another
  • min_max - add validator to ensure one numeric path is lte another
  • require_together - add validator to require several paths to be set, if any of them are set
  • set_predicate - expands on Mongoose's array operators, providing atomic array operations using iterators
  • set_save - update path(s) and save with all validations
  • url_path - validate that a path is a valid URL
  • email_path - validate that a path is a valid email
  • phone_path - validate that a path is a valid phone number
  • location_path - combines with locup to create a geolocation. Path includes geocoding and reverse geocoding methods to populate coordinate and human-readable location information
  • file_path - combines with fstk to represent system files as Mongoose paths. Paths acquire helpful methods for file manipulation, while including middelware to keep the target file in sync with Mongoose.
  • solr - combines with solrdex to add blazing-fast and powerful Solr full-text searching to any Mongoose model.
  • schedule - represents a chronological schedule and all the fun validations that entails (still in progress)
  • access_control - combines with rol to provide powerful access control and scoping for models and their documents -- drop this in to create an instant API
  • payment - combines with pa1d to provide payment processing in Mongoose. Create payment accounts and store payment methods using common payment gateways, then perform transactions, keeping records in Mongo.

Utilities include:

  • clearModels - remove all documents from MongoDB, without changing the schema

More to come, along with usage documentation. For now, review the test suite for usage.

License

Copyright (c) 2014 Ben Sack Licensed under the MIT license.