Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
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 }}
JavaScriptExample
js-cookie
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
js-cookie
src
on
migrate-to-browserstack
User selector
All users
Datepicker
All time
Commit history
Commits on Apr 12, 2018
Prevent accidentally writing cookie in getJSON()
carhartl
committed
ef3c946
View commit details
Copy full SHA for ef3c946
View code at this point
Browse repository at this point
Commits on Feb 16, 2018
Pass on arguments without array'izing it
carhartl
committed
a7ab62c
View commit details
Copy full SHA for a7ab62c
View code at this point
Browse repository at this point
Remove superfluous assignment
Show description for 1df2c68
carhartl
committed
1df2c68
View commit details
Copy full SHA for 1df2c68
View code at this point
Browse repository at this point
Change cookie reading approach
Show description for 8018ea2
carhartl
committed
8018ea2
View commit details
Copy full SHA for 8018ea2
View code at this point
Browse repository at this point
Refine code for applying read converters
carhartl
committed
7f75645
View commit details
Copy full SHA for 7f75645
View code at this point
Browse repository at this point
Make expires attribute handling more concise
carhartl
committed
4cd7df2
View commit details
Copy full SHA for 4cd7df2
View code at this point
Browse repository at this point
Make use of ternary operator instead of if/else
Show description for 7441ec7
carhartl
committed
7441ec7
View commit details
Copy full SHA for 7441ec7
View code at this point
Browse repository at this point
Make use of chaining for string wrangling
carhartl
committed
d53efd3
View commit details
Copy full SHA for d53efd3
View code at this point
Browse repository at this point
Commits on Feb 15, 2018
Group related code together
carhartl
committed
f9f3f0e
View commit details
Copy full SHA for f9f3f0e
View code at this point
Browse repository at this point
Group api related functions together
carhartl
committed
5083c64
View commit details
Copy full SHA for 5083c64
View code at this point
Browse repository at this point
Commits on Feb 11, 2018
Prevent XSS in the cookie attributes
Show description for 6ac440d
FagnerMartinsBrack
committed
6ac440d
View commit details
Copy full SHA for 6ac440d
View code at this point
Browse repository at this point
Commits on Oct 28, 2017
Release version 2.2.0
FagnerMartinsBrack
committed
34f056c
View commit details
Copy full SHA for 34f056c
View code at this point
Browse repository at this point
Do not remove quotes for the getJSON() API
Show description for 2754526
Faraz Sherwani
authored and
FagnerMartinsBrack
committed
2754526
View commit details
Copy full SHA for 2754526
View code at this point
Browse repository at this point
Commits on Apr 3, 2017
Release version 2.1.4
FagnerMartinsBrack
committed
8b70250
View commit details
Copy full SHA for 8b70250
View code at this point
Browse repository at this point
Commits on Jan 9, 2017
Allow undocumented attributes to be passed when creating a cookie
Show description for c1aa987
kukulich
authored and
FagnerMartinsBrack
committed
c1aa987
View commit details
Copy full SHA for c1aa987
View code at this point
Browse repository at this point
Commits on Sep 2, 2016
Release version 2.1.3
FagnerMartinsBrack
committed
68acf18
View commit details
Copy full SHA for 68acf18
View code at this point
Browse repository at this point
Commits on Aug 26, 2016
Register in AMD and UMD if both available
Show description for 92f8e2b
FagnerMartinsBrack
committed
92f8e2b
View commit details
Copy full SHA for 92f8e2b
View code at this point
Browse repository at this point
Commits on Aug 4, 2016
Do not parse as JSON when window has a truthy 'json' prop
Show description for bccdaf7
FagnerMartinsBrack
committed
bccdaf7
View commit details
Copy full SHA for bccdaf7
View code at this point
Browse repository at this point
Commits on Jun 25, 2016
Remove unnecessary code alignment
Show description for bafff92
FagnerMartinsBrack
committed
bafff92
View commit details
Copy full SHA for bafff92
View code at this point
Browse repository at this point
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
Previous
Next
You can’t perform that action at this time.