open-index/open-npm huggingface dataset:
npm package: @karmalicious/drivers-config
Description: A simple environment variable handler so you don't have to access `process.env.NS_FOO` directly.
Latest version: 13.0.0

# drivers-config

A simple environment variable handler so you don't have to access `process.env.NS_FOO` directly.

## Install
`npm install @karmalicious/drivers-config`

## Features
* Removes env vars that are  `undefined`. This simplifies the type signature.
* Remove env var namespaces so `NS_FOO="hello"` is accessed via `config.FOO`.
* Filter out any value that does not start with the namespace. This makes it easier to debug and test the env vars.
* Strip out the namespace from the config variables. This is key to send the config around to the drivers libraries.
npm package: @karmalicious/drivers-pub-sub
Description: A driver on top of google cloud platform's pub/sub.
Latest version: 13.7.0

# drivers-pub-sub
A driver on top of google cloud platform's pub/sub.

## Install
`npm install @karmalicious/drivers-pub-sub`.

## Setup
You need to set the GCP service account file path via the environment variable `GOOGLE_APPLICATION_CREDENTIALS`.
Follow the instructions at: https://cloud.google.com/pubsub/docs/quickstart-client-libraries
npm package: @karmalicious/nodejs-drivers
Description: A set of common dependencies needed to get started with a nodejs-server.
Author: Marcus Nielsen
Latest version: 9.0.0

[![Build Status](https://travis-ci.org/karmadev/nodejs-drivers.svg?branch=master)](https://travis-ci.org/karmadev/nodejs-drivers)

# nodejs-drivers

A set of common dependencies needed to get started with a nodejs-server.

This project encourages a modularized/co-located file structure so it's easier to split a service up in smaller chunks in the future.

It has the following set of highly opinionated drivers:

* db: A database driver for postgresql.
* httpReq: Make HTTP requests to other servers.
* jwt: Just a re-export of jsonwebtoken.
* logger: Logging based on Winston.
* pubSub: Google Cloud Platform's Pub-Sub message broker for sending events between services.
* report: Generate PDF reports. This is optional, and not included in the standard serverDeps set. Import it directly instead.
* server: Wraps Express with some defaults, and exposes `initRoutes` that mounts routes, extracts variables, and calls model methods with those variables.
* uuid: Generates v4 uuids.

## Install
Run `yarn add @karmalicious/nodejs-drivers`.

## Setup
Copy the `.env.example` and fill out the values.
`GOOGLE_APPLICATION_CREDENTIALS` need to be set according to https://cloud.google.com/docs/authentication/production in the section "Creating a service account". Alternatively, go to https://console.cloud.google.com/apis/credentials/serviceaccountkey and download the JSON in to the root of the project and set `GOOGLE_APPLICATION_CREDENTIALS=./gcp-service-account.json` in the .env file.

## Testing

Run `yarn test`.
Run `yarn test -- --watch` for watch mode.

## Publishing

* Run `yarn publish` and set a new semver number.
* Run `git push && git push --tags`.