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

ucoach-scaffold

v1.0.0

Published

``` //add to package.json prior to npm install "ucoach-scaffold": "git+https://github.com/inside-track/ucoach-scaffold.git" ```

Downloads

2

Readme

#Installation

//add to package.json prior to npm install
"ucoach-scaffold": "git+https://github.com/inside-track/ucoach-scaffold.git"

#ucoach-scaffold Scaffolding for any api or web application. Handles logging, http(s) requests, routing validation for primative types string, int, number, date, array, json. Complex comparisons like json or item inspection of a collection should be validated externally. Meaning implemented in the extension function onRouteValidation.

#onUncaughtExceptionRequest A hook for any external handling of process failure api core will kill process.

#onPreAppSetup Anything that needs to be done prior to anything added to the express app.

#onPreAppMiddleware Anything added prior to adding middleware this could also be done in onPreAppSetup.

#onPostAppMiddleware Anything added after middleware.

#onPreRouterConfigured Anything added before configuring the routing this could also be done in onPostAppMiddleware.

#onPostRouterConfigured Anything added after router has been configured.

#onRouteValidation During route validation this will be called first(parameters marked as external validated prior as default check if all are accounted for).

#onRouteDataRequest A hook to get data default handle response will still send this out yet for web application is preferred to use override onHandleResponse.

#onHandleResponse A hook to handle response.send as default will only send json or write data directly to response.

#Encryption an encryption module is added to api that is configurable default is aes-256-ctr

#log4js a logger is also attached with an internal raygun client. Global keys are configurable raygun will require EXCEPTION_RERPORTER_KEY

#ServiceManager service resolves will require that services are passed so when the manager attempts to configure the service contract it can resolve them correctly

#Globals Any global values should be added during the callback of onSetup where the initial access to globals will be provided.

route validation

Default routing validation will check and convert the following types via the javascript-validator

type:               function:
string              isString
string-non-empty    isNonEmptyString
string-date         isDateString
string-numeric      isNumericString
int                 isInt
number              isNumber
//for json.stringify dates it has to convert as isDateString will be false
date                isDate
//has to json.parse prior to checking
array               isArray
//has tojson.parse prior to checking
json                isObject