Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:add sendFile func #229

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat:add sendFile func #229

wants to merge 2 commits into from

Conversation

markH5
Copy link

@markH5 markH5 commented Mar 18, 2025

exp:

// exp1
import { Hono } from 'hono'
import { sendFile } from './send-file'

let tf = true
const app = new Hono()
    .get('/my-path', (c, next) => {
        tf = !tf
        const filePath: string = tf
            ? 'C:/exp/bar.gif'
            : 'C:/exp/foo.jpg'
        return sendFile(c, filePath)
    })

This project uses bun as the package manager, but uses node to run tests, so is it normal that I cannot run jest in the Windows environment?

@markH5 markH5 marked this pull request as draft March 18, 2025 03:39
@markH5 markH5 marked this pull request as ready for review March 18, 2025 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant