1.0.6 • Published 2 years ago

healthenviron-backend v1.0.6

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

Cornerstonesln

Tools Node.js Backend

A Node.js toolkit for CORNERSTONE Blockchain Solutions S.A.S Microservice for developing micro backend or Lambda Functions based pattern microservices.

Installation

npm install --save @cornerstonesln/tools-nodejs-backend

Auth

Auth functions.

Connect MariaDB

MariaDB connection functions.

Console Logger

Standard console logger.

Environment Variables:

process.envdescvaluesdefaults
LOG_LEVELLog Level ThresholdDEBUG, INFO, WARN, ERROR, FATALWARN

Example:

const logger = require('@cornerstonesln/tools-nodejs-backend').logger;

logger.d('This is a DEBUG Log')
logger.i('This is an INFO Log')
logger.w('This is a WARN Log')
logger.e('This is an ERROR Log')
logger.f('This is a FATAL Log', new Error('Node Error'))

Utils

Various utility functions used throughout microservices codebase.