# send-json-response

> a function to send json responses with express.

Latest version **0.0.1** (published 2017-09-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install send-json-response
pnpm add send-json-response
yarn add send-json-response
bun add send-json-response
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-09-03 |
| First published | 2017-09-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | latani masithi |
| Maintainers | runners4tme |
| Keywords | responses |

## Links

- npm: https://www.npmjs.com/package/send-json-response
- Repository: https://github.com/runners4tme/send-response
- Homepage: https://github.com/runners4tme/send-response#readme
- Issues: https://github.com/runners4tme/send-response/issues
- npm.io page: https://npm.io/package/send-json-response

## Recent versions

- 0.0.1 (latest) — 2017-09-03

## README

# Send-response

## Instructions

1. Install the package :

    ```
    npm install send-response

    ```

2. Examples of how to use the package:

   ```
   const sendResponse = require('send-response')

   module.exports.addResource = (req, res, next) => {
   const resource = new Resource({ req.body })
   resource.save()
   .then(resource => sendResponse(res, 201, {id: resource._id}))
   .catch(err => handleError(err))
   }
   ```

3. You can add suggestions via issues

---
_Source: https://npm.io/package/send-json-response · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
