cookie-maker

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

Usage no npm install needed!

<script type="module">
  import cookieMaker from 'https://cdn.skypack.dev/cookie-maker';
</script>

README

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;