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

quadro

v1.3.6

Published

[![Code Climate](https://codeclimate.com/github/WisePricer/quadro/badges/gpa.svg)](https://codeclimate.com/github/WisePricer/quadro) [![CircleCI](https://circleci.com/gh/WisePricer/quadro.svg?style=shield)](https://circleci.com/gh/WisePricer/quadro) [![bi

Downloads

363

Readme

Quadro framework

Code Climate CircleCI bitHound Dependencies

TOC:

Requirements

  • See .nvmrc in the root of the project for Node version requirements and if possible use NVM to install Node.

Installation

Create a new app and add the following to package.json:

"dependencies": {
  "quadro": ""
}

In app.js add:

const Quadro = require('quadro')
Quadro()

You're done! Run with:

node app.js [--watch]

Test with:

node app.js test [--watch]

Configuration manager

Config files should be placed in ROOT/config/ dir.

To get value of key.nestedKey in configuration file named config/someConfig.yml:

app.config.someConfig.key.nestedKey

For safe configuration fetch, use config.get:

app.config.get('someConfig.key.nestedKey')

To get value of key.nestedKey in config/someConfig.yml|yaml|js|json and defaults to 3000 if such key doesn't exist

app.config.get('someConfig.key.nestedKey', 3000)

Environment-specific configuration

Quadro will load configuration from these paths (in the following order):

  • config/
  • config/$NODE_ENV
  • config/local

Note: $NODE_ENV - is the NODE_ENV environment variable value

Configurations are merged while loading. In the following example:

|-- config/quadro.yml
  |- dev/quadro.yml
  |- local/quadro.yml

Configuration keys from local/quadro.yml will override keys from dev/quadro.yml which in turn will override keys from config/quadro.yml.

Local configuration:

It is highly recommended that any config values that are tweaked during debugging/development will be added to local/ configs. This way you can add **/config/local/ to .gitignore and be able to keep your dev environment clean during commits/pushes.

You can maintain your local-machine specific configuration config/local. For git to ignore those changes use:

git update-index --skip-worktree **/config/local/*

Tests runner

To run tests use:

node app.js test

To make tests re-run on file changes use:

node app.js test --watch

Contributing

Commit messages should be according to https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular

In short:

feat(ci): implemented a feature in CI
fix(pubsub): retries on rabbitmq disconnect
perf(http): HTTP performance improvements
docs(...): ...
refactor(...): ...
test(...): ...
chore(...): ...