
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
mr-doc-compiler
Advanced tools
This repo contains the source file for compiler. There are a few things to cover in order to understand how the compiler works.
The compiler in index.js, uses the Factory Pattern to create different compilers for the specified format.
There are three main formats that the compiler will output:
However, the compiler should not write any files to a path. It should only produce a string that is ready to be piped down a stream.
Initially the interface was written in TypeScript, but to keep things simple for those who are not familiar with TypeScript and would like to contribute, I decided to stick with ES6 (without Babel).
The following would be interface that must be implemented (unless specified):
class ICompiler {
/**
* ICompiler
* @param {Object} options - The options for the compiler provided by mr-doc-utils/options
*/
constructor(options) {
this.options = options;
}
/**
* Compiles the parsed comments into the desired output.
* @param {Array<Object>} results The parsed comments.
* @return {*} The compiled output.
*/
compile(results) {
// ...
}
}
FAQs
The official compiler for Mr. Doc
We found that mr-doc-compiler 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.