I dont have time, but @april.social if you wanted to add the Node.js example to the article, here is the package to use: https://github.com/jshttp/cookie#readme
Comments
Log in with your Bluesky account to leave a comment
But I think the ideal would be to compare it with all of the different things you called out in the article. Might be we pass the unicode but break for others.
and I tested in both the new major and also the more popular `0.x` version which we ship in main line express and is the most downloaded package for cookie parsing in the JS ecosystem.
And just to check, I ran the unicode cookie through our parser and it seems to work correctly. Wouldn't be the first time Node.js had a more robust solution but was not included or generally dismissed.
Comments
i’d be happy to add it if so.
console.log(require('cookie').parse('unicodeCookie=🍪;'))
But I think the ideal would be to compare it with all of the different things you called out in the article. Might be we pass the unicode but break for others.