Handy function to handle import.meta
npm install esmetaHandy function to handle import.meta
```
npm install esmeta --save
`js
import esmeta from 'esmeta'
const importMeta = esmeta(import.meta)
/*
{
url: "file:///a/b/c.mjs" // same as import.meta.urlprocess.mainModule
dirname: "/a/b"
filename: "/a/b/c.mjs"
dirnameJoin(...paths) // helper function to join path
isMain() // return true if match to require.resolve
resolve() // return the resolved filename like ``
}
*/
- is-main - Check if current module is main module.