Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
docula-core
Advanced tools
Other Docula modules:
Requires Node.js v5.9.1 or higher. Requires Redis. ElasticSearch is optional.
Using NPM
$ npm install docula-core --save
const Docula = require('docula-core');
const docula = new Docula({
git: {
remote_url: 'https://github.com/yourorg/yourrepo',
local_path: '/var/docula/repositories/yourrepo'
}
})
or
const docula = new Docula('/var/docula/config.json');
If you have some items in your configuration you want to configure via Environment, use additional parameter to Docula. These settings will override anything from previous config.
const docula = new Docula('config.json', {
git: { token: '123X' }
});
Once initialized, your repository will not have any data unless explicitly synchronized. Synchronization procedure clones or pulls the repo if it's already there, and scans changes since last point remembered in database.
Normally this should be done once initially, and then as a result of a GitHub commit hook. But you also could set it up via scheduler if you host your git repo somewhere else or for any other reasons.
docula.refresh();
Docula uses Q promises, and most core methods return one.
Docula uses filesystem paths (relative to repo root) as IDs for articles, categories etc. Terms "path" and "id" are mostly interchangeable throughout Docula.
Main concepts are:
Docula instance methods:
Tests for docula-core can be run using the command:
$ gulp test
Issues? Feature Requests? reported an issue.
FAQs
Core functions of Docula project
The npm package docula-core receives a total of 15 weekly downloads. As such, docula-core popularity was classified as not popular.
We found that docula-core 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.