
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
remark-swagger
Advanced tools
Insert a swagger specification into a markdown file.
$ npm install remark-swagger
| path | method | summary |
| /foo/bar | GET | get all bars in the area |
| /bin/baz | PUT | add a new baz to the region |
const swagger = require('remark-swagger')
const remark = require('remark')
const fs = require('fs')
const spec = fs.readFileSync('./swagger-spec.json')
const readme = fs.readFileSync('./README.md')
const res = remark()
.use(swagger(spec, { position: 3, title: 'API' }))
.process(readme)
process.stdout.write(res, '\n')
Usage: remark-swagger [options] <markdown> [swagger]
Options:
-h, --help Output usage information
-v, --version Output version number
-y, --yaml Use swagger YAML instead of JSON
-p, --position Heading position, defaults to 4
-t, --title Heading title, defaults to API
-w, --write Persist changes to markdown file
Examples:
$ remark-swagger README.md swagger.json # Inject swagger into markdown
$ remark-swagger README.md < swagger.json # Inject swagger into markdown
Docs: https://github.com/yoshuawuyts/remark-swagger
Bugs: https://github.com/yoshuawuyts/remark-swagger/issues
'API'.FAQs
Insert a swagger specification into a markdown file
We found that remark-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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.