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
migrate-to-browserstack
User selector
All users
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.