
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@dimerapp/config-parser
Advanced tools
Dimer is an open source project and CMS to help you publish your documentation online.
We believe every project/product is incomplete without documentation.
We want to help you publish user facing documentation, without worrying about tools or code to write.
Parses dimer.json
This module parses the dimer.json file and returns a normalised config object back.
npm i @dimerapp/config-parser
# yarn
yarn add @dimerapp/config-parser
const ConfigParser = require('@dimerapp/config-parser')
const Context = require('@dimerapp/context')
const ctx = new Context(__dirname)
// masterOptions are optional
const configParser = new ConfigParser(ctx, masterOptions)
You can optionally pass masterOptions to the constructor. The masterOptions are merged (with more priority) the compiler options defined inside the config file.
Following options are allowed inside dimer.json config file as compileOptions.
Whether or not to validate the domain. default=true
API url from which the api is served. default=http://localhost:5000. Defining this in options, will override the value explicitly defined in config.
The assets url from where the assets will be served. If not defined, it will be created from the apiUrl.
Whether or not to create the search index.
Whether or not to detect assets.
Parse the config file and returns normalised config object.
try {
const { errors, config } = await configParser.parse()
if (errors) {
errors.forEach(({ message, ruleId }) => console.log(message, ruleId))
return
}
// use config
} catch (error) {
// file is missing or bad JSON
}
Create a new config file (if missing).
await configParser.init()
// or pass custom config
await configParser.init({
domain: '',
versions: {}
})
{
domain: 'adonisjs.dimerapp.com',
cname?: 'adonisjs.com',
defaultVersion: 'master',
versions: {
master: 'docs/master'
},
websiteOptions?: {},
compilerOptions: {
apiUrl: 'http://localhost:5000',
detectAssets: true,
createSearchIndex: true,
assetsUrl?: 'http://localhost:5000/__assets',
validateDomain?: true
}
}
The change log can be found in the CHANGELOG.md file.
Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.
thetutlage and contributors.
MIT License, see the included MIT file.
FAQs
Parses the dimer.json file
We found that @dimerapp/config-parser 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.