We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fae39d commit 951353eCopy full SHA for 951353e
README.md
@@ -236,24 +236,17 @@ cookies.get('default'); // 北
236
cookies.get(); // { escaped: '北', default: '北' }
237
```
238
239
-You can also pass an Object Literal:
240
-
241
-```javascript
242
-Cookies.withConverter({
243
- read: function (value, name) {
244
- // Convert
245
- }
246
-});
247
-```
248
249
### Write
250
251
Create a new instance of the api that overrides the default encoding implementation:
252
253
```javascript
254
Cookies.withConverter({
+ read: function (value, name) {
+ // Read converter
+ },
255
write: function (value, name) {
256
+ // Write converter
257
}
258
});
259
0 commit comments