1.3.3 • Published 9 years ago

ft-next-url-mapper v1.3.3

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

#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"
});
1.3.3

9 years ago

1.3.0

9 years ago