
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@holochain/dna-to-openapi
Advanced tools
given holochain dna, generate a swagger / openapi spec file / static swagger-ui html documentation
given holochain dna, generate a swagger / openapi spec file / static swagger-ui html documentation
$
npm install -g @holochain/dna-to-openapi
$
dna-to-openapi -h
Usage dna-to-openapi [options]
Options:
-p, --path specify a path (otherwise ".")
-s, --spec generates an open-api spec file ("-" for stdout)
-d, --doc generates a static swagger-ui html doc ("-" for stdout)
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
dna-to-openapi lints the given holo app / dna
dna-to-openapi --path <path> to specify a path (otherwise ".")
dna-to-openapi --spec <spec-file.json> generates an open-api spec
dna-to-openapi --doc <api-doc.html> generates static swagger-ui html doc
dna-to-openapi --spec <spec-file.json> does both
--doc <api-doc.html>
const dna = require('@holochain/dna-to-openapi')
// 1 - lint
const lintResults = dna.lint(dnaJsonObject, schemasObject)
// if there are errors (lintResults.errors), abort here.
// generating a spec file with lint errors may not work
if (lintResults.errors.length > 0) {
process.exit(1)
}
// 2 - generate openapi spec
const specJson = dna.convert(dnaJsonObject, schemasObject)
// 3 - generate swagger-ui html
const swaggerHtml = dna.genDocs(specJson)
FAQs
given holochain dna, generate a swagger / openapi spec file / static swagger-ui html documentation
The npm package @holochain/dna-to-openapi receives a total of 5 weekly downloads. As such, @holochain/dna-to-openapi popularity was classified as not popular.
We found that @holochain/dna-to-openapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.