cookie-maker
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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;

Readme

Keywords

none

Package Sidebar

Install

npm i cookie-maker

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

8.13 kB

Total Files

11

Last publish

Collaborators

  • viendinh