Skip to content

fetch instead of axios #307

Open
@konsumer

Description

@konsumer

If this library used fetch instead of axios (with cross-fetch as a polyfill for environments that don't have fetch) it would be usable in other js environments (deno, bun, cloudflare workers, maybe even browser!)

Possible Solution

Remove dependencies on axios, and use cross-fetch and standard fetch API.

I have seen browser-nano but haven't tested. It may already have support for this. This might be a nice way to merge these projects. It has a very thin wrapper to monkey-patch nano.

Context

For me specifically, it would enable me to use nano/couch more easily, directly with cloudflare workers (which have fetch built-in.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions