Skip to content

This is a meta-package of 'cookie' and 'js-cookie' with TypeScript support.

License

Notifications You must be signed in to change notification settings

VienDinhCom/cookie-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cookie-maker

This is a meta-package of cookie and js-cookie with TypeScript support.

Please go to cookie and js-cookie for documentations.

import { parse, serialize } from 'cookie';
import {
  set,
  get,
  remove,
  getJSON,
  noConflict,
  withConverter,
  CookieAttributes,
  CookiesStatic,
  CookieWriteConverter,
} from 'js-cookie';

export type Cookie = {
  [key: string]: string;
};

export { CookieAttributes, CookiesStatic, CookieWriteConverter };

export const cookieMaker = {
  parse,
  serialize,
  set,
  get,
  remove,
  getJSON,
  noConflict,
  withConverter,
};

export default cookieMaker;

About

This is a meta-package of 'cookie' and 'js-cookie' with TypeScript support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages