Movatterモバイル変換


[0]ホーム

URL:


CtrlK
On this page

Getting Started

Thanks for choosing nanoexpress!

Nano-framework for Node.js powered

We are onProductHunt andStackShare! Please check it out

Coming updates and latest news athere

Features

  • Express-compatible middleware* layer

  • Express-like API

  • Faster than most Node.js backend frameworks

  • In-builtasync support without any ofHttpResponse instance*

  • Ajv* schema validator support

  • fast-json-stringify* serialization support

  • Swagger* support

  • In-built WebSocket support

  • In-built Stream support

Code is provided as-is, do not expect or demandfree support, warranty or debugging

Installation

You can install

$ npm i nanoexpress# or$ yarn add nanoexpress
  • This library does not supportHTTP2!

As soon as you have installed the right package, let's create the first server

import nanoexpress from 'nanoexpress';const app = nanoexpress();app.get('/', (req, res) => {    return res.send({ status: 'ok' });});app.listen(3000);

Usingapp.listen(PORT, '0.0.0.0') is recommended to use forDocker,Heroku andAWS

Last updated

Was this helpful?


[8]ページ先頭

©2009-2025 Movatter.jp