JSPM

@lit-protocol/misc-browser

6.0.0-alpha.11
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8071
  • Score
    100M100P100Q135971F
  • License MIT

Package Exports

  • @lit-protocol/misc-browser
  • @lit-protocol/misc-browser/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lit-protocol/misc-browser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Quick Start

This submodule includes functions for interaction with local storage (get, set, remove), converting between Blob and base64 string, converting a file to a data URL, downloading a file, and injecting an iFrame for displaying LIT content on the current page, all within the JavaScript SDK for the Lit Protocol.

node.js / browser

yarn add @lit-protocol/misc-browser

Vanilla JS (UMD)

<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/misc-browser-vanilla/misc-browser.js"></script>
<script>
  console.log(LitJsSdk_miscBrowser);
</script>