swagger-express-middleware icon indicating copy to clipboard operation
swagger-express-middleware copied to clipboard

what's the difference between @apidevtools/swagger-express-middleware and swagger-express-middleware?

Open zacyang opened this issue 3 years ago • 1 comments

I found its really confusing, on https://www.npmjs.com/package/swagger-express-middleware there are 2 instruction to install this module, one is

npm i swagger-express-middleware

the other is in the readme

npm install @apidevtools/swagger-express-middleware

could you clarify what is the difference? Thanks

zacyang avatar Oct 26 '20 00:10 zacyang

I just looked into the swagger-express-middleware content and it just reexports @apidevtools/swagger-express-middleware package. Doesn't looks like it has anything malicious in it.

index.js:

"use strict";
module.exports = require("@apidevtools/swagger-express-middleware");

Both packages have jamesmessinger in contributors, first one also has rkrauskopf but maybe it's his bot. Both packages are same latest version 4.0.2. I assume maybe it's done to be able to use typescript definitions for it? @types/swagger-express-middleware

n1kk avatar Jan 07 '21 09:01 n1kk

They're both the same and they're both about to get deprecated unless anyone wants to maintain them.

philsturgeon avatar Nov 07 '22 15:11 philsturgeon