This package has been deprecated

Author message:

This package is no longer maintained

ft-next-url-mapper

1.3.3 • Public • Published

next-url-mapper

Build Status

Attempts to map between article, home and stream/section pages from Next ft to Falcon (the current site).

Requires a CAPI V1 Key in the API_KEY variable

Usage

var mapper = require('next-url-mapper');

mapper.init().then(function(){

	var nextUrl = mapper.toNext('http://www.ft.com/markets/currencies');
	// nextUrl === "http://next.ft.com/stream/sections/currencies"

	var falconUrl = mapper.toFalcon('http://next.ft.com/92136f40-c6fd-11e4-8e1f-00144feab7de');
	// falconUrl === "http://www.ft.com/cms/s/0/92136f40-c6fd-11e4-8e1f-00144feab7de.html"
});

/ft-next-url-mapper/

    Package Sidebar

    Install

    npm i ft-next-url-mapper

    Weekly Downloads

    1

    Version

    1.3.3

    License

    ISC

    Last publish

    Collaborators

    • aintgoin2goa
    • financial-times
    • mattandrews