0.0.3 • Published 1 year ago

unipack-example v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

unipack-example

Do you want to author an npm module that uses fetch and should work in any JavaScript context? Then use this project as a template.

This is an example project bringing fetch to different JavaScript contexts: browser, Node.js, and Cloudflare Workers.

As long as your code goes through a bundler that knows how and when to use the browser field in package.json, you can use fetch. We've verified this approach works for:

Scripts

pnpm publish # will build and publish
pnpm build
pnpm test # will test in jsdom + lint + type check + prettier
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago