Skip to content

Demo using JS in browser to generate a downloadable file

License

Notifications You must be signed in to change notification settings

jobyh/clientside-download-demo

Repository files navigation

Clientside Download Demo

View the demo online

If you're interested in the download code check out the code around line 41 of /pages/index.tsx. The setTimeout is not necessary; it's there for UX (so the loader displays for at least 500ms / doesn't just blink - generation is fast).

The demo is built with Next.js using React, TypeScript and TailwindCSS.

Static site is generated under /docs as this is a preconfigured Github Pages static site directory (quick & easy).

TODO

  • iOS Safari CSS bug (filename .txt not displaying)

About

Demo using JS in browser to generate a downloadable file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published