1.0.0 • Published 4 years ago

@financial-times/flags-cookie v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Flags Cookie

Financial-Times

A library for handling Flags Cookies.

This library does not currently handle parsing and setting cookies, and can be consumed both client-side (using cookies.get) and server-side.

Example

Code Example

import FlagsCookie from '@financial-times/flags-cookie'

const flags = new FlagsCookie('test:true')
console.log(flags.get('test')) // => 'true'

Example Cookie

Cookie: Flags=test1:true,test2:variantA
1.0.0

4 years ago