Besides going through the documentation of the package and trial/error attempts, how can I know for sure if an npm packaged can be imported with the ES6 import syntax?
Is there a file inside the package folder that I can check?
I constantly question myself about this.
For example:
The md5 package DOCS only mentions md5 = require('md5'); but I've just tested and it works with import md5 from 'md5'
How can I inspect the package and know for sure?