
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
MDocu is a NodeJS documentation generator capable of converting a bulk of .md files into a static webapp.
To use the CLI, install MDocu with Npm or Yarn globally.
npm install mdocu -g
yarn global add mdocu
mdocu compile "/output-dir" "/pages-dir" -n "Name of the project"
Create a new directory by the given name and creates examples pages, a configuration file and finally compiles.
mdocu new "Name of the project"
Initializes a new project in the current working directory.
mdocu init "Name of the project"
Show Cli version information.
mdocu --version
MDocu follows a simple naming convention that controls the order and name of your pages. Therefor it's necassary to keep in mind that MDocu only looks for files that follow that convention, let's take a look at the following examples of valid and invalid filenames:
Valid filenames
01-introduction.md
02-getting-started.md
03-about-the-author.md
Invalid filenames
getting-started.md
getting_started.md
01-getting_started.md
getting-started
The module has the following configuration options:
| Property | Type | Default | Explanation |
|---|---|---|---|
| Path | string | null | Path where to should look for .md files |
| outDir | string | null | Path where the compiled pages should appear |
| name | string | 'MDocu' | (optional) Project name that appears throughout the app |
| locale | string | 'en' | (optional) The language of your writings |
| debug | boolean | true | (optional) Display log information, warnings and errors |
| version | string | '0.0.0' | (optional) Current version of your project |
To extend it's functionality or have more control over MDocu, you can use it as a javascript module.
import { Mdocu } from 'mdocu';
Mdocu.setup({
name: 'Demo documentation',
path: './demo/md',
outDir: './demo/docs'
}).compile()
const lib = require('mdocu');
lib.Mdocu.setup({
name: 'Demo documentation',
path: './demo/md',
outDir: './demo/docs'
}).compile()
FAQs
A documentation generator for markdown flavoured pages.
We found that mdocu 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.