Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Express Basics Deeper into Routing with Express Statelessness, Setting and Reading Cookies

Do we still need to use cookie-parser?

I know that we no longer need to install body-parser in newer version(s) of express, but is cookie-parse now built in or does it need to be installed still? Thanks.

2 Answers

Hi chrisshadrach. On the Express documentation site, it looks like cookie-parser still needs to be installed separately using the npm package. http://expressjs.com/en/resources/middleware/cookie-parser.html.

kasu0270
seal-mask
.a{fill-rule:evenodd;}techdegree
kasu0270
Full Stack JavaScript Techdegree Student 10,071 Points

Hi yes, unfortunatly it seems that body-parser is out of date. You can use:

app.use(express.urlencoded({ extended: false }));

instead.