Package Exports
- cookie-js-api
- cookie-js-api/dist/cjs/index.js
- cookie-js-api/dist/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cookie-js-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cooker.js
Library for cookies in js
Example: https://next-js-cookie-api-example.vercel.app/
Use the library
import { getCookie, setCookie } from "cookie-js-api";
/** setting a cookie */
setCookie('cookie-name', 'value')
/** getting a cookie */
getCookie('cookie-name')