Oscar Franco

I surf and I work as a tech lead.

I'm trying to become independent, you can support me by checking out my projects.

How to quickly test any JavaScript library in the browser console

February 2021

Yesterday Guillermo Rauch discovered the date-fns page has their library exposed on their documentation page for you to try it directly

This is definitely good, but I don’t know if any other library does this, what if you want to compare the output with another library? waiting for all the library pages to do this is just wishful thinking.

Buy you don’t need to wait, you can do this on your own thanks to skypack. Open your browser’s console:

Dynamic import

Very useful for quick testing