Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
JavaScriptExample
/
js-cookie
Public
forked from
js-cookie/js-cookie
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Commits
Breadcrumbs
History for
js-cookie
src
on
clarify-encoding
User selector
All users
All time
Commit history
Commits on Jun 19, 2016
Add support for UglifyJS 'unsafe' option
Show description for 79037c2
everdimension
authored and
FagnerMartinsBrack
committed
79037c2
View commit details
Copy full SHA for 79037c2
View code at this point
Browse repository at this point
Commits on May 29, 2016
Release version 2.1.2
FagnerMartinsBrack
committed
8bb6144
View commit details
Copy full SHA for 8bb6144
View code at this point
Browse repository at this point
Commits on May 27, 2016
Do not fail if there is a malformed cookie name
Show description for 81e202a
FagnerMartinsBrack
committed
81e202a
View commit details
Copy full SHA for 81e202a
View code at this point
Browse repository at this point
Commits on Apr 16, 2016
Release version 2.1.1
FagnerMartinsBrack
committed
5c830fb
View commit details
Copy full SHA for 5c830fb
View code at this point
Browse repository at this point
Remove underscore from the OldCookies variable
Show description for 880dedd
FagnerMartinsBrack
committed
880dedd
View commit details
Copy full SHA for 880dedd
View code at this point
Browse repository at this point
Add semicolon to the begining of the library source
Show description for dbce759
icamys
authored and
FagnerMartinsBrack
committed
dbce759
View commit details
Copy full SHA for dbce759
View code at this point
Browse repository at this point
Commits on Apr 9, 2016
Do not create cookie if using .set() incorrectly
Show description for 0c8f5e1
FagnerMartinsBrack
committed
0c8f5e1
View commit details
Copy full SHA for 0c8f5e1
View code at this point
Browse repository at this point
Commits on Apr 5, 2016
Do not throw errors if the methods are called in node
Show description for 84eb324
FagnerMartinsBrack
committed
84eb324
View commit details
Copy full SHA for 84eb324
View code at this point
Browse repository at this point
Commits on Dec 31, 2015
Release version 2.1.0
FagnerMartinsBrack
committed
788bde3
View commit details
Copy full SHA for 788bde3
View code at this point
Browse repository at this point
Commits on Oct 17, 2015
Add an API to pass an Object Literal for the write converter
Show description for a5640d4
FagnerMartinsBrack
committed
a5640d4
View commit details
Copy full SHA for a5640d4
View code at this point
Browse repository at this point
Release version 2.0.4
FagnerMartinsBrack
committed
605b12c
View commit details
Copy full SHA for 605b12c
View code at this point
Browse repository at this point
Commits on Jul 26, 2015
Fix Cookie setup as window global
Show description for 6b896ce
carhartl
authored and
FagnerMartinsBrack
committed
6b896ce
View commit details
Copy full SHA for 6b896ce
View code at this point
Browse repository at this point
Commits on Jul 20, 2015
Release version 2.0.3
FagnerMartinsBrack
committed
d827e08
View commit details
Copy full SHA for d827e08
View code at this point
Browse repository at this point
Make the authors consistent with the README.md footer
FagnerMartinsBrack
committed
625c466
View commit details
Copy full SHA for 625c466
View code at this point
Browse repository at this point
Commits on Jul 11, 2015
Should not throw an exception for a third party malformed cookie
Show description for e36ddd2
FagnerMartinsBrack
committed
e36ddd2
View commit details
Copy full SHA for e36ddd2
View code at this point
Browse repository at this point
Commits on Jun 27, 2015
Release version 2.0.2
FagnerMartinsBrack
committed
aab421e
View commit details
Copy full SHA for aab421e
View code at this point
Browse repository at this point
Commits on Jun 25, 2015
false secure option should not modify the cookie path
Show description for f8e01f4
dimac
authored and
FagnerMartinsBrack
committed
f8e01f4
View commit details
Copy full SHA for f8e01f4
View code at this point
Browse repository at this point
Commits on Jun 22, 2015
Fix npm were it published the master "2.1.0-pre" on top of "2.0.0"
FagnerMartinsBrack
committed
380cc86
View commit details
Copy full SHA for 380cc86
View code at this point
Browse repository at this point
Prepare for the next development iteration
FagnerMartinsBrack
committed
988ada8
View commit details
Copy full SHA for 988ada8
View code at this point
Browse repository at this point
Release version 2.0.0
FagnerMartinsBrack
committed
3641d94
View commit details
Copy full SHA for 3641d94
View code at this point
Browse repository at this point
Commits on May 10, 2015
Prepare for the next development iteration
FagnerMartinsBrack
committed
c2fd724
View commit details
Copy full SHA for c2fd724
View code at this point
Browse repository at this point
Release version 2.0.0-beta.1
FagnerMartinsBrack
committed
ede5390
View commit details
Copy full SHA for ede5390
View code at this point
Browse repository at this point
Commits on May 1, 2015
Fix the naming to comply with the docs
FagnerMartinsBrack
committed
573a638
View commit details
Copy full SHA for 573a638
View code at this point
Browse repository at this point
Deleting an attribute should roll back to the default definition
FagnerMartinsBrack
committed
38dc9e2
View commit details
Copy full SHA for 38dc9e2
View code at this point
Browse repository at this point
Create the default path attribute implementation
FagnerMartinsBrack
committed
bc4b822
View commit details
Copy full SHA for bc4b822
View code at this point
Browse repository at this point
Commits on Apr 25, 2015
Merge pull request #27 from js-cookie/byte-saving
Show description for 6d7b290
FagnerMartinsBrack
committed
6d7b290
View commit details
Copy full SHA for 6d7b290
View code at this point
Browse repository at this point
Commits on Apr 24, 2015
Make some rules consistent and fix some files
FagnerMartinsBrack
committed
22b1167
View commit details
Copy full SHA for 22b1167
View code at this point
Browse repository at this point
Commits on Apr 23, 2015
No need for those comments, there are tests for globals/amd/node
FagnerMartinsBrack
committed
fdcf45a
View commit details
Copy full SHA for fdcf45a
View code at this point
Browse repository at this point
Fix year 2015 and naming
FagnerMartinsBrack
committed
84c40aa
View commit details
Copy full SHA for 84c40aa
View code at this point
Browse repository at this point
Assume "escape" is available anywhere in the source files
Show description for bea9f51
FagnerMartinsBrack
committed
bea9f51
View commit details
Copy full SHA for bea9f51
View code at this point
Browse repository at this point
There is no need to arrayify the arguments here
FagnerMartinsBrack
committed
51e8745
View commit details
Copy full SHA for 51e8745
View code at this point
Browse repository at this point
Cut some bytes
Show description for 82b9168
FagnerMartinsBrack
committed
82b9168
View commit details
Copy full SHA for 82b9168
View code at this point
Browse repository at this point
Commits on Apr 22, 2015
Remove the code
FagnerMartinsBrack
committed
146f42c
View commit details
Copy full SHA for 146f42c
View code at this point
Browse repository at this point
Merge pull request #20 from js-cookie/server-encoding-test
Show description for 1257445
FagnerMartinsBrack
committed
1257445
View commit details
Copy full SHA for 1257445
View code at this point
Browse repository at this point
Commits on Apr 21, 2015
Merge branch 'master' into 2.0
Show description for a38840b
FagnerMartinsBrack
committed
a38840b
View commit details
Copy full SHA for a38840b
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.