JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 29
  • Score
    100M100P100Q47587F
  • License MIT

Utilities for working with nostr.build media

Package Exports

  • nostr-build
  • nostr-build/dist/nostr-build.mjs
  • nostr-build/dist/nostr-build.umd.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 (nostr-build) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

nostr-build

Utilities for working with nostr.build media.

Example usage

import { uploadFile } from 'nostr-build'

await uploadFile({
    file, // file that was uploaded using an html input
    sign: (event) => window.nostr.signEvent(event), // using nip-07 ext signing function
})