Skip to content

A library for mapping content to a topper on FT.com and the App

Notifications You must be signed in to change notification settings

Financial-Times/n-map-content-to-topper

Repository files navigation

n-map-content-to-topper

CircleCI

A library for mapping content to a topper on FT.com and the App.

Table of Contents

Requirements

  • Node >18.x

Installation

git clone https://github.com/Financial-Times/n-map-content-to-topper.git
cd n-map-content-to-topper
npm install

Development

Testing

In order to run the tests locally you'll need to run:

npm run test

Install from NPM

npm install @financial-times/n-map-content-to-topper

Usage

const {
	mapContentToTopper
} = require('@financial-times/n-map-content-to-topper');

const topper = mapContentToTopper(content, flags);

Release Process

The project is released automatically to npm via Github Releases. Create a release, and name the tag with the Semantic Versioning version you want. The CircleCI build for the tag will release that version to npm.