Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

mithril-express-middleware

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mithril-express-middleware

express middleware for mithril.js apps

latest
Source
npmnpm
Version
1.1.12
Version published
Maintainers
1
Created
Source

mithril-express-middleware

Build Status Coverage Status dependencies Status devDependencies Status peerDependencies Status npm version downloads license

use mithril routes with express

installation

npm install mithril-express-middleware

usage

import mithrilExpress from "mithril-express-middleware";

import * as browserMock from "mithril/test-utils/browserMock";

// use a mock DOM so we can run mithril on the server
browserMock(global);

import app from "./your-express-app";
import routes from "./your-mithril-routes";

app.use(mithrilExpress(routes));

see also

  • mithril.js to get know what is mithril
  • mithril-route-render to see what's behind the hood

Keywords

express

FAQs

Package last updated on 19 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts