expressjs_interop 0.0.3 copy "expressjs_interop: ^0.0.3" to clipboard
expressjs_interop: ^0.0.3 copied to clipboard

Dart bindings and interop layer for ExpressJS.

example/main.dart

import 'package:expressjs_interop/expressjs_interop.dart';
import 'package:js/js.dart';
import 'package:node_interop/util.dart';
import 'package:node_interop/node.dart';

void main() {
  ExpressFunction express = require('express');
  var app = express();
  app.get('/', allowInterop((Request req, Response res, NextFunction next) {
    print('Request received: ${req.url}');
    res.send(jsify({"result": "OK"}));
  }));
  app.listen(8080);
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Dart bindings and interop layer for ExpressJS.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

js, node_http, node_interop

More

Packages that depend on expressjs_interop