Skip to content

Consider using TypeScript? #35

Open
@jcbhmr

Description

@jcbhmr

Hello! 👋

I've used this library in some of my Web Worker projects to download things synchronously, particularly for WASM magic stuff (sync httpGet() is nice!). I'd be interested in contributing code to this library, but I wanted to check-in with @larsgw, the author, before I do anything so I don't end up with a dead-end fork that only I use 😜

Specifically, here's some things that I'd love ❤️ to contribute:

  • TypeScript! 🙌 And use multiple files.
  • Use web-focused TextEncoder or similar instead of buffer (looks like someone else is already on this in Replace 'buffer' dependency with native TextEncoder #27! nice!)
  • Tooling and stuff for a modern bundler like Vite or tsup
  • An improved readme with: more example code, example use case (web worker), more usage details, etc.
  • Refactor tests into multiple files.
  • Use ESM modules (possibly still compiled to CommonJS)

If you'd like to keep it steady and stable as-is, that's OK too! 😊 I'm just reaching out to strike up a discussion about whether or not my PRs would be stuck in limbo 🙄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions