Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@pager/json-markdown
Advanced tools
This Project is fork of https://github.com/jeremyrajan/json-markdown. It is forked to mantain dependencies.
json-markdown is a simple tool to generate documentation for your JSON schema. The lib provides a CLI api and pro-grammatical api for use in your applications.
npm install --save [-g] json-markdown
json-markdown <location-to-your-file.json> --w=true/false
You can pass -w=true/false, if you want to write to a file or not. By default its true.
This will generate the markdown from your schema and create SCHEMA.md
in the current directory. You can also provide an output file, to which you want to write:
json-markdown <location-to-your-file.json> <output-file-location.md> --w=true/false
const jsonmarkdown = require('json-markdown');
const schemaLoc = './product.json';
const outputFile = 'output-file.md'; // if you don't provide an output file, it will create an .md from your schema filename.
// the third argument defines, if you want to write to file or not. Set it to false, if you dont need to create a markdown yet.
jsonmarkdown.process(schemaLoc, outputFile, true, (err, result) => {
console.log(result);
});
Report issues: https://github.com/jeremyrajan/jsonschema-md/issues
Hope it helps, someone :).
FAQs
Generate Markdown documentation for your JSON schema
The npm package @pager/json-markdown receives a total of 5 weekly downloads. As such, @pager/json-markdown popularity was classified as not popular.
We found that @pager/json-markdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.