can someone explain me this node js express module ?

can someone explain me this node js express module :
https://www.npmjs.com/package/express-ejs-layouts
what is does and where and when it is used
You already invited:

Dexter

Upvotes from:

it set your html template directory location and __dirname returns current project directory which means your views path is project/views
 
It initialize router object and then you can register your defined routes to use it in application.
like:
const router = express.Router()
router.get('some/path', function())

If you wanna answer this question please Login or Register