VienDinhCom / cookie-maker

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:TypeScript 100.0%