Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@resmijs/swagger
Advanced tools
Plugin for resmi to auto-generate Swagger page.
bun add @resmijs/swagger
import { Resmi, t } from 'resmi'
import { swagger } from '@resmijs/swagger'
const app = new Resmi()
.use(swagger())
.get('/', () => 'hi', { response: t.String({ description: 'sample description' }) })
.post(
'/json/:id',
({ body, params: { id }, query: { name } }) => ({
...body,
id,
name
}),
{
params: t.Object({
id: t.String()
}),
query: t.Object({
name: t.String()
}),
body: t.Object({
username: t.String(),
password: t.String()
}),
response: t.Object({
username: t.String(),
password: t.String(),
id: t.String(),
name: t.String()
}, { description: 'sample description' })
}
)
.listen(8080);
Then go to http://localhost:8080/swagger
.
@default 'scalar' Choose between Scalar & SwaggerUI
Customize scalarConfig, refers to Scalar config
Customize Swagger config, refers to Swagger 3.0.3 config
@default '/swagger'
The endpoint to expose Swagger
@default true
Determine if Swagger should exclude static files.
@default []
Paths to exclude from the Swagger endpoint
FAQs
Plugin for Resmi to auto-generate Swagger page
The npm package @resmijs/swagger receives a total of 0 weekly downloads. As such, @resmijs/swagger popularity was classified as not popular.
We found that @resmijs/swagger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.