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

nodeon-base

v1.0.3

Published

The nodeON Base modules to inherit from.

Downloads

26

Readme

nodeON Base

The nodeON Base modules to inherit from.

Build Status

Install

Install the module using NPM:

npm install nodeon-base --save

Table of Contents

  1. API

API

Constructors and methods exposed:

  • base.EntityBase Base Ctor for Entities.
  • base.ControllerBase Base Ctor for Controllers.
  • base.ModelBase Base Ctor for Models.
  • base.ModelRedisBase Base Ctor for Redis Model, make sure to define options.
  • base.ModelMongoBase Base Ctor for Mongo Models using Mongoose.
  • base.ModelPostgresBase Base Ctor for Postgres Models using Sequelize.
  • base.MiddlewareBase Base Ctor for Middleware.
  • base.options(opts) Look at Available Options.

Available Options

base.options(opts) Accepts the following key value pairs:

  • redis And Object containing:
    • namespace string The namespace to prepend all keys with.
    • port string Connection port.
    • host string Hostname to connect to.
    • pass string Password to use.
    • options Object Options to pass to the redis client.
  • isHeroku boolean Set to true if environment is Heroku.
  • errorName string How to sign all generated error names, this is a prefix.

[⬆]

TODO

  • Check on logging facilities and how they'll pipe.

Release History

  • v1.0.3, 03 Mar 2018
    • Updated all dependencies to latest.
  • v1.0.2, 29 Nov 2016
    • Fixed duplication error, thank you @sirodoht.
  • v1.0.1, 16 Jan 2016
    • Upgraded all packages to latest.
  • v1.0.0, 16 Jan 2016
    • Upgraded all packages to latest.
  • v0.3.3, 17 Aug 2015
    • Upgraded all packages to latest.
  • v0.3.2, 20 Jul 2015
    • Tweak error reporting on error interceptor.
  • v0.3.1, 02 Jun 2015
  • v0.3.0, 21 Apr 2015
    • Updated entity Mongoose error interception to match new attribute names in Mongoose 4.x
  • v0.2.3, 16 Dec 2014
    • Debug log the intercepted error's stack
  • v0.2.2, 16 Dec 2014
    • Better handling for objectId type of errors.
  • v0.2.0, 16 Dec 2014
    • Upgraded all packages to latest, with the intend to get the nodeon-error 0.2.x series.
  • v0.1.9, 09 Dec 2014
    • Handle 'record not found' mongoose error cases.
    • Better handling of Mongoose duplicate errors.
      • Augmented with which is the offending index.
    • Now throws the original Error vs the "toApi()" version so Crude can handle properly.
    • Accepts the errorName config parameter for signing generated errors.
  • v0.1.6, 31 Oct 2014
    • Fixed config options propagation.
  • v0.1.4, 12 Oct 2014
    • Added method show404() on Controller base to show a 404 page depending on the accepts request header.
  • v0.1.3, 15 Aug 2014
    • Big Bang

License

Copyright (c) 2014 Thanasis Polychronakis. Licensed under the MIT license.