Use Linting

Install Eslint for Project

$ npm i eslint -D

To run Lint

  • Add "lint": "eslint ." in package.json script
$ npm run lint

Insert Data into Mongo Collection

  • Mongod Should be running
$ mongo bookAPI < booksJson.js