@financial-times/flags-cookie
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/flags-cookie

Weekly Downloads

16

Version

1.0.0

License

MIT

Unpacked Size

16.1 kB

Total Files

11

Last publish

Collaborators

  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson