Socket
Socket
Sign inDemoInstall

@musicorum/coloris

Package Overview
Dependencies
11
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @musicorum/coloris

an all-rounder back-end framework for musicorum services


Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

@musicorum/coloris

coloris is a set of tools for back-end applications, providing things such as logging, prometheus metrics, configuration, and more.

how?

overly complex hello world:

import {log, metrics, cache} from '@musicorum/coloris'

await cache.start()
metrics.setAppName('test')

const metric = metrics.register('counter', {
    name: 'server.totalRequests',
    description: 'total number of http requests'
})

server.get('/', (req, res) => {
    log.info('server.handler', 'got a request!')
    metric.increase()
    res.send('hello world!')
})

server.get('/metrics', (req, res) => {
    res.send(metrics.toPrometheus())
})

server.listen(3000)

what does it look like?

example

FAQs

Last updated on 25 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc