
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
postman-2-swagger
Advanced tools
We like to use postman, but often we get asked for swagger docs. There doesn't seem to be any open source postman v2.0.0
=> swagger/openApi tools. Maybe a commercial reason, here is one for you.
import postmanToSwagger from 'postman-to-swagger';
const convertAndSave = postmanJson => {
// This returns the actual swagger v2.0 spec as a json
const swaggerJson = postmanToSwagger(postmanJson);
// Example if you want to save it somewhere
fs.writeFile(
'../_docs/swagger.json',
JSON.stringify(swaggerJson, null, 2),
'utf8'
);
};
With swagger-ui-express
import postmanToSwagger from 'postman-to-swagger';
import swaggerUi from 'swagger-ui-express';
import mockCollection from './mockCollection.json';
swagger.get('/swagger', swaggerUi.setup(postmanToSwagger(mockCollection)));
// Static stuff
swagger.use('/', swaggerUi.serve, (req, res) => res.status(404).end());
# Build this lib
npm run build
# Go into demo folder and install
npm install
# Then run the demo
npm run watch
models
thing that is kind of useful, maybe we can also do that.lodash/fp
, lodash/fp/flow
to slim down module sizeFAQs
Postman collections to swagger
We found that postman-2-swagger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.