Skip to content

feat:add sendFile func#229

Open
markH5 wants to merge 2 commits intohonojs:mainfrom
markH5:send-file
Open

feat:add sendFile func#229
markH5 wants to merge 2 commits intohonojs:mainfrom
markH5:send-file

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