nbit icon indicating copy to clipboard operation
nbit copied to clipboard

A zero-dependency, strongly-typed web framework for Bun, Node and Cloudflare workers

Results 5 nbit issues
Sort by recently updated
recently updated
newest added

Hello, How can I send an image to the server? I have a form that sends multipart/form-data but I can't figure out how to accept form data in nbit. There...

This implements a way to add a listener for incoming requests (or only requests that match a route) and modify the response object, e.g. add CORS headers. ```ts import {...

Hello, How can I set cors globally? In express it would be ```typescript app.use(cors()); ``` I have nbit working as such ```typescript return Response.json({ hello: 'world' }, { headers: {...

Save this as `src/poc.ts`. ```ts import { fileURLToPath } from 'url'; import { join } from 'path'; import { createApplication, Response } from '@nbit/bun'; const __dirname = fileURLToPath(new URL('.', import.meta.url));...

Here's the types that're being shipped right now with `@nbit/[email protected]`. Notice the lack of comments on most of the types. For example `allowStaticFrom` has no comment in the shipped types....