tiny-cookie
Advanced tools
Changelog
v2.0.0
With modern development workflow, such as Babel, Rollup, Karma, npm scripts and so on.
Cookie
as a function.import cookie from 'tiny-cookie
doesn't work. The reason why it hasn't a default export is it will prevent the webpack tree-shaking working. You can do it like this import * as cookie from 'tiny-cookie'
.#14enabled
method to isEnabled
.getAll
method to get all cookie pairs at a time.