appirio-tech/tc-core-library-js

Name: tc-core-library-js

Owner: Topcoder

Description: null

Created: 2016-05-26 03:11:40.0

Updated: 2017-11-05 20:56:24.0

Pushed: 2018-02-21 23:03:31.0

Homepage: null

Size: 35

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

tc-core-library-js

Library that contains utils, middlewares etc that can be used by all Topocder Services.

Logger

Sets up a Bunyan logger (https://github.com/trentm/node-bunyan) to use with the application logging. If captureLogs is enabled logs will be pushed to Logentries using le_node library.

Note: Bunyan logger was chosen over winston because winston logger tends to flatten json metadata logged along with strings thus overwriting values with the same key name. You'll have to obtain a token for your app to integrate with logentries

Util

Functions to wrap response based on V3 API specification.

Middleware

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.