<script> importmap type


```type<script type="importmap">  {    "imports": {      "browser-fs-access": "https://unpkg.com/browser-fs-access@0.33.0/dist/index.modern.js"    }  }</script>```

and then

```type<button>Select a text file</button><script type="module">  import {fileOpen} from 'browser-fs-access';  const button = document.querySelector('button');  button.addEventListener('click', async () => {    const file = await fileOpen({      mimeTypes: ['text/plain'],    });    console.log(await file.text());  });</script>```



> [JavaScript import maps are now supported cross-browser](https://web.dev/import-maps-in-all-modern-browsers/)





