@jeffriggle/bison-express

2.0.0 • Public • Published

Bison Express

Combines expressjs with bison to allow you to easily send bison based data from your express server.

Using

const express = require('express');
const { useBison, sendBison } = require('@jeffriggle/bison');
const app = express();

useBison(app);

app.get('/', (req, res) => {
    res.status(200);
    sendBison(res, { message: 'Hello world!' });
});

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @jeffriggle/bison-express

    Weekly Downloads

    4

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.86 kB

    Total Files

    4

    Last publish

    Collaborators

    • jeffriggle