# qoala-common-nodejs

> Qoala NodeJS development kit

Latest version **1.0.0** (published 2022-08-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install qoala-common-nodejs
pnpm add qoala-common-nodejs
yarn add qoala-common-nodejs
bun add qoala-common-nodejs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-08-13 |
| First published | 2022-08-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Qoala Engineering |
| Maintainers | yansenarmandau-qoala |
| Keywords | nodejs, library |

## Links

- npm: https://www.npmjs.com/package/qoala-common-nodejs
- Repository: https://github.com/qoala-engineering/qoala-common-nodejs
- Homepage: https://github.com/qoala-engineering/qoala-common-nodejs#readme
- Issues: https://github.com/qoala-engineering/qoala-common-nodejs/issues
- npm.io page: https://npm.io/package/qoala-common-nodejs

## Dependencies (2)

- [joi](https://npm.io/package/joi.md) ^17.6.0
- [hot-shots](https://npm.io/package/hot-shots.md) ^9.2.0

## Recent versions

- 1.0.0 (latest) — 2022-08-13

## README

# Qoala NodeJS Development Kit
Development kit includes:
- Datadog Integration

### Datadog Integration
Config injection for datadog integration instance.

Methods:
1. sendIncrement
2. sendHistogram

**Required Config**
Config location: WORK_DIR/src/app.config.js

Format:
```
module.exports = {
    development: {
        datadog: {
            host: <String>
            port: <Number>
            env: <String>
            prefix: <String>
        }
    },
    test: { .... },
    production: { ... }
    getDefaultEnvConfig() {
        return this[process.env.NODE_ENV || 'development'];
    }
}
```

### Usage

**Datadog**
```
const { datadog } = require('qoala-common-nodejs');

// Send increment with tags
datadog.sendIncrement('metric_name', 1, ['tags1', 'tags2'])

// send histrogram with tags
datadog.sendHistogram('my_histogram', 42, ['tags1', 'tags2'])
```

---
_Source: https://npm.io/package/qoala-common-nodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
