Cookies
Cookies copied to clipboard
JavaScript Client-Side Cookie Manipulation Library
Resolves #85
i don't see any update on this repo for a long time, is it dead?
There is a quite popular Node.js cookie library called [cookies](https://www.npmjs.com/package/cookies) on npm that – absolutely justified – declares a "cookies" TypeScript module. This complicates things in isomorphic applications where both...
I want to be able to set an expiry date to the cookie and add some data to that cookie on certain events without resetting the expiry of it .....
Export all the module since this is a declaration file for a module. This will make sure the module could be used with TypeScript@^3.0.0
Cookies.get("name") - if "name" not exist return undefined Cookies.get("name", 7) - if "name" not exist return 7
Would be nice to have an optional `default` parameter for the get function. If the cookie is undefined then the default would be returned instead. ```javascript var c = Cookies.get("some-cookie");...
`import * as cookies from 'cookies-js';` yields: `error TS7016: Could not find a declaration file for module 'cookies-js'. 'node_modules/cookies-js/dist/cookies.js' implicitly has an 'any' type.` I believe there's (at least) two...