Let's see how you can leverage PnPjs from within a Node.js application in order to consume SharePoint Online with an application only access token.
You can find further details here:
https://pnp.github.io/pnpjs/
https://pnp.github.io/pnpjs/getting-s...
While, here you can find the sample code:
https://github.com/PiaSys/Conferences...