title: node js - body-parser deprecated undefined extended: provide extended option
body: <p>this my code in a module file that need to use body parser in it :</p>
  <pre><code>let bodyParser = require('body-parser');
  let urlencodedParser = bodyParser.urlencoded({ exports: false});
  let data = [{item: 'do homework'},{item:'do some exercises'}];
  module.exports = (app) =&gt; {
       app.get('/todo', (req, res) =&gt; {
            res.render('todo',{todos:data});
          }); 
          app.post('/todo',urlencodedParser, (req, res) =&gt; {
              data.push(req.body);
              res.json(data);
          });
          app.delete('/todo', (req, res) =&gt; {
              
          }); 
  </code></pre>
  <p>the error is :
  body-parser deprecated undefined extended: provide extended option controllers\controller.js:2:35<code>enter code here</code>
  you're listening to the port 3000</p>