//fork-srvxbyproductdevbook

fork-srvx

πŸ’₯ Universal Server API based on web platform standards. Works seamlessly with Deno, Bun and Node.js.

0
0
0
TypeScript

Ξ» srvx

npm version
npm downloads
install size

Universal Server based on web standards. Works with Deno, Bun and Node.js.

Quick start

export default {
  fetch(req: Request) {
    return Response.json({ hello: "world!" });
  },
};

Then, run the server using your favorite runtime:

# Node.js
$ npx srvx       # npm
$ pnpx srvx      # pnpm
$ yarn dlx srvx  # yarn

# Deno
$ deno -A npm:srvx

# Bun
$ bunx --bun srvx

You can also use srvx fetch to directly call your server handler without starting a server:

$ npx srvx fetch /api/users

See CLI documentation for more options.

πŸ‘‰ Visit the πŸ“– Documentation to learn more.undefined

Contribution

  • Clone this repository
  • Install the latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • undefinedPrepare stub mode using pnpm build --stubundefined
  • Run interactive tests using pnpm dev

License

Published under the MIT license.
Made by @pi0 and community πŸ’›






πŸ€– auto updated with automd

[beta]v0.14.0