@jups/body-json
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

jups-body-json

NPM Version NPM Downloads Install Size

An extension for the jups package for parsing JSON body data.

Installation

npm i @jups/body-json

Usage

const jups = require('jups');
const bodyJSON = require('@jups/body-json');

jups()
    .use(bodyJSON)
    .post('/', (req, res) => {
        res.end(req.body.name);
    })
    .listen(3000);

For Typescript just use the following import syntax.

import bodyJSON from '@jups/body-json';

Readme

Keywords

none

Package Sidebar

Install

npm i @jups/body-json

Weekly Downloads

6

Version

0.1.0

License

MIT

Unpacked Size

3.34 kB

Total Files

5

Last publish

Collaborators

  • isaacakajupiter