package
Basic cookie handling
npm install jarGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Simple cookie handling:
cookieValue = jar.cookie('chocolateChip');
jar.cookie('chocolateChip', 'new cookie value');It's also easy to set cookie options:
jar.cookie('topSecret', 'this cookie will self-destruct in 5 days', { expires: 5 });After you install Ender, include jar in your package:
ender add jarThis will namespace the package under the $ variable:
$.cookie(...);