This module is deprecated and is no longer maintained. Consider a more standard approach to handling cookies.
Provides a utility for getting or setting the value of cookies. Also contains additional methods for getting and setting parameters of certain FT cookies (which use a variety of different syntaxes)
This module has been verified in Internet Explorer 7+, modern desktop browsers (Chrome, Safari, Firefox, …) and mobile browsers (Android browser, iOS safari, Chrome mobile).
The following FT cookies are supported for setting and fetching key-value data from within the cookie
// Get the value of slot 2 in the AYSC cookie var val = require('o-cookies').getParam('AYSC', '02');
Copyright (c) 2016 Financial Times Ltd. All rights reserved.
This software is published under the MIT licence.