@tsonic/expressjs
v10.0.1
Published
TypeScript type definitions for Express.js style API on ASP.NET Core
Maintainers
Readme
@tsonic/expressjs
TypeScript bindings for the ASP.NET Core-backed expressjs-clr runtime.
This package provides the Express-style API surface for Tsonic projects targeting .NET 10.
Install
npm install @tsonic/expressjs @tsonic/dotnet @tsonic/coreQuick Start
import { express } from "@tsonic/expressjs/index.js";
const app = express.create();
app.get("/", (req, res) => {
res.send("hello");
});
app.listen(3000);API Notes
- Callable
express()is represented asexpress.create()/express.app(). - Some verbs use C#-safe names (
lock_,m_search). - Use
method("...")for exact custom verb strings.
Source Repositories
- Runtime implementation:
tsoniclang/expressjs-clr - Package generation source:
tsoniclang/expressjs
License
MIT
