Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-response-formatter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-response-formatter - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

.eslintrc.json

7

CHANGELOG.md

@@ -8,2 +8,9 @@ # Changelog

## [1.2.0] - 2020-03-05
### Added
- Support TypeScript.
- Add CI.
## [1.1.0] - 2019-06-04

@@ -10,0 +17,0 @@

10

example/index.js

@@ -9,6 +9,3 @@ const app = require('express')()

app.get('/success', (req, res) => {
const users = [
{ name: 'Dana Kennedy' },
{ name: 'Warren Young' },
]
const users = [{ name: 'Dana Kennedy' }, { name: 'Warren Young' }]

@@ -20,6 +17,3 @@ res.formatter.ok(users)

app.get('/success-with-meta', (req, res) => {
const users = [
{ name: 'Dana Kennedy' },
{ name: 'Warren Young' },
]
const users = [{ name: 'Dana Kennedy' }, { name: 'Warren Young' }]

@@ -26,0 +20,0 @@ const meta = {

36

package.json
{
"name": "express-response-formatter",
"version": "1.1.0",
"version": "1.2.0",
"main": "lib/index.js",
"scripts": {
"build": "babel src/ -d lib/",
"build": "babel src -d lib --extensions \".ts\"",
"demo": "nodemon example/index.js",
"format": "prettier --write src/**/*.js",
"format": "prettier --write src/**/*.ts",
"test": "jest"
},
"repository": "https://github.com/aofleejay/express-response-formatter.git",
"author": "kunapot <aofleejay@github.com>",
"author": "aofleejay",
"license": "MIT",
"devDependencies": {
"@babel/cli": "7.4.4",
"@babel/core": "7.4.5",
"@babel/preset-env": "7.4.5",
"express": "4.16.2",
"husky": "2.3.0",
"jest": "24.8.0",
"nodemon": "1.14.11",
"prettier": "1.17.1",
"pretty-quick": "1.11.0",
"supertest": "4.0.2"
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.7",
"@babel/preset-typescript": "^7.8.3",
"@types/jest": "^25.1.3",
"@types/supertest": "^2.0.8",
"@typescript-eslint/eslint-plugin": "^2.22.0",
"@typescript-eslint/parser": "^2.22.0",
"babel-jest": "^25.1.0",
"eslint": "^6.8.0",
"express": "^4.17.1",
"husky": "^4.2.3",
"jest": "^25.1.0",
"nodemon": "^2.0.2",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"supertest": "^4.0.2",
"typescript": "^3.8.3"
},

@@ -26,0 +34,0 @@ "husky": {

@@ -1,3 +0,5 @@

# express-response-formatter [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/aofleejay/express-response-formatter/blob/master/LICENSE.md) [![npm](https://img.shields.io/npm/v/express-response-formatter.svg)](https://www.npmjs.com/package/express-response-formatter) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
# express-response-formatter
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/aofleejay/express-response-formatter/blob/master/LICENSE.md) [![npm](https://img.shields.io/npm/v/express-response-formatter.svg)](https://www.npmjs.com/package/express-response-formatter) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com) [![Build Status](https://travis-ci.org/aofleejay/express-response-formatter.svg?branch=master)](https://travis-ci.org/aofleejay/express-response-formatter)
Better way to format Express response

@@ -4,0 +6,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc