New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sparc-commons

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sparc-commons

Library with all small time common stuff used across the SPARC echosystem

  • 0.2.2
  • npm
  • Socket score

Version published
Weekly downloads
17
decreased by-5.56%
Maintainers
1
Weekly downloads
 
Created
Source

COMMON PACKAGE

This is the common package for all SPARC servers and products. Right now it contains the following things:

  • logger - based on log4js
  • resources - based on needle
  • utils - all the rest of the crap, including a function to load handlebar templates

The library expects to find a configuration file in the config/ folder of the root project. Following is an example of such configuration file

{
    "version": "0.2.4",
    "logging": {
        "appenders": [
            {
                "type": "console",
                "layout": {
                    "type": "pattern",
                    "pattern": "[%d %p %c] %m"
                }
            }
        ],
        "levels": {
            "[all]": "DEBUG"
        },
        "replaceConsole": "true"
    },

    //TODO: hook this up in a http making library
    "resource": {
        "test_resource": {
            "method": "get",
            "url": "http://bogus.com",
            "uri": {
                "boguservice": "bellobell",
                "boguservice2": "gallogall"
            },
            "api-params": {
                "apikey": "asdfg"
            }
        }
    }
}

For the logger configuration please refer to log4js documentation. Resources is pretty straightforward

FAQs

Package last updated on 21 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc