@financial-times/kmt-utilities

kmt utility toolkit

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
04May 29, 2019Jul 6, 2016Minified + gzip package size for @financial-times/kmt-utilities in KB

Readme

kmt-utilities

Common middleware and server side helpers for KAT microservices.

KAT (Knowledge & administration tools) is an ft.com application created for Financial Times B2B clients.

Usage

npm install --save @financial-times/kmt-utilities

Example using the initCookieSession middleware. See index.js for exposed functions.

const { initCookieSession } = require('@financial-times/kmt-utilities');

app.use(initCookieSession);

An API key for the services in this package is required. Details on obtaining one for your application can be found in the membership api gateway guide.

Development

git clone git@github.com:Financial-Times/kmt-utilities.git
cd kmt-utilities
make install

Environment Variables

make .env

Tests

make test

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.