
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Blazing fast alternative to Swagger. Demo
Complete API docs up and running in less than 5 mins!
yarn add quantor
import quantor from 'quantor'
const json = {...JSON API Docs}
quantor(json)(html => /* do something with html */)
// Express or GCF example
quantor(json)(html => res.set('Content-Type', 'text/html').send(new Buffer(html)))
Quantor generates the docs based on the JSON provided. The JSON must follow the Quantor JSON Spec. See this example file for the structure expected or see below.
Basic structure:
{
"title": "String",
"description": "String",
"base": "String",
"endpoints": [
{
"name": "String",
"display": "String",
"description": "String",
"handlers": {
"GET": {
"optionalQueryParams": [
{
"name": "String",
"description": "String",
"type": "String",
"default": "Any"
}
],
"responses": [
{
"code": 200,
"model": "User"
}
]
}
}
}
],
"models": {
"User": {
"name": "String",
"age": "Integer"
}
}
}
Facts:
Check out our contributer docs and check out our issues. Pick anything that tickles your fancy or create an issue that you would find useful.
FAQs
Simple SSR API docs
The npm package quantor receives a total of 15 weekly downloads. As such, quantor popularity was classified as not popular.
We found that quantor 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.