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
test
tests.js
on
clarify-encoding
User selector
All users
All time
Commit history
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
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 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
Commits on Jul 15, 2015
Test the behavior for `undefined` value in custom attributes
Show description for 6ffc0b4
FagnerMartinsBrack
committed
6ffc0b4
View commit details
Copy full SHA for 6ffc0b4
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 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 8, 2015
Fix jscs code style violations and run jscs in the test operation
Show description for 7c3a8bd
FagnerMartinsBrack
committed
7c3a8bd
View commit details
Copy full SHA for 7c3a8bd
View code at this point
Browse repository at this point
Commits on May 23, 2015
Add utility to conditionally send a request to the server
FagnerMartinsBrack
committed
8e91807
View commit details
Copy full SHA for 8e91807
View code at this point
Browse repository at this point
Commits on May 3, 2015
update the QUnit code to prepare for v2
FagnerMartinsBrack
committed
7e3bee7
View commit details
Copy full SHA for 7e3bee7
View code at this point
Browse repository at this point
Commits on May 2, 2015
Make sure cookies created outside js-cookie default instance are removed
Show description for c00df64
FagnerMartinsBrack
committed
c00df64
View commit details
Copy full SHA for c00df64
View code at this point
Browse repository at this point
Commits on May 1, 2015
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
This is not called "options" anymore, but "attributes"
FagnerMartinsBrack
committed
6ff48c8
View commit details
Copy full SHA for 6ff48c8
View code at this point
Browse repository at this point
Let's keep this test atomic and remove all cookies
Show description for f43aecb
FagnerMartinsBrack
committed
f43aecb
View commit details
Copy full SHA for f43aecb
View code at this point
Browse repository at this point
The returned value has the path added here too if set as default
FagnerMartinsBrack
committed
740f65b
View commit details
Copy full SHA for 740f65b
View code at this point
Browse repository at this point
Again, test if it starts with the expected value
FagnerMartinsBrack
committed
b9212c1
View commit details
Copy full SHA for b9212c1
View code at this point
Browse repository at this point
Use split instead of regex to prevent non-deterministic behavior
Show description for f82eb04
FagnerMartinsBrack
committed
f82eb04
View commit details
Copy full SHA for f82eb04
View code at this point
Browse repository at this point
Test only if the string starts with the expected value
FagnerMartinsBrack
committed
4ac5076
View commit details
Copy full SHA for 4ac5076
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 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
Add ".noConflict()" to prevent conflict with third party scripts
Show description for a105e27
tomsouthall
authored and
FagnerMartinsBrack
committed
a105e27
View commit details
Copy full SHA for a105e27
View code at this point
Browse repository at this point
Commits on Apr 20, 2015
Fix CI
FagnerMartinsBrack
committed
395aa1d
View commit details
Copy full SHA for 395aa1d
View code at this point
Browse repository at this point
Add test for retrieving all cookies using converters
FagnerMartinsBrack
committed
d4318a9
View commit details
Copy full SHA for d4318a9
View code at this point
Browse repository at this point
Add new converter implementation
FagnerMartinsBrack
committed
6b66ed4
View commit details
Copy full SHA for 6b66ed4
View code at this point
Browse repository at this point
I believe this fix was mistaken
Show description for 9a8018c
FagnerMartinsBrack
committed
9a8018c
View commit details
Copy full SHA for 9a8018c
View code at this point
Browse repository at this point
jshint
FagnerMartinsBrack
committed
5235b01
View commit details
Copy full SHA for 5235b01
View code at this point
Browse repository at this point
Mode the 'cookie-octet enclosed in DQUOTE' test to tests.js
FagnerMartinsBrack
committed
31dfc49
View commit details
Copy full SHA for 31dfc49
View code at this point
Browse repository at this point
Split the tests in 3 files for better manageability
FagnerMartinsBrack
committed
31ff4a4
View commit details
Copy full SHA for 31ff4a4
View code at this point
Browse repository at this point
Test for allowed characters in cookie value
FagnerMartinsBrack
committed
c495d5c
View commit details
Copy full SHA for c495d5c
View code at this point
Browse repository at this point
Commits on Apr 19, 2015
Use the same naming used in the source
FagnerMartinsBrack
committed
c76131c
View commit details
Copy full SHA for c76131c
View code at this point
Browse repository at this point
Add test for whitespace in cookie-name
FagnerMartinsBrack
committed
432b398
View commit details
Copy full SHA for 432b398
View code at this point
Browse repository at this point
Testing server communication is irrelevant now
FagnerMartinsBrack
committed
694ffe1
View commit details
Copy full SHA for 694ffe1
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.