
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
A simple Apache wrapper for Node.js.
You can itialize the API with a special Apache path:
const apacheApi = require('apache-api')('/usr/share/apache2/');
Or with the default one (/etc/apache2/):
const apacheApi = require('apache-api');
Functions to parse and serialize an Apache configuration file.
const { parser } = require('apache-api');
objectParse an Apache configuration file.
| Param | Type | Description |
|---|---|---|
| content | string | Apache configuration file to parse |
| [skipComments] | boolean | Wether ignore comments. Default: false |
stringSerialize an Apache configuration file.
| Param | Type | Description |
|---|---|---|
| content | object | Configuration object to serialize |
| [ident] | string | Indent type. Default: two space |
| [extendedSpaces] | boolean | Add more line returns between instructions. Default: false |
Show Apache status, start, stop, and restart Apache service with systemctl.
const { actions } = require('apache-api');
Promise<any>Start Apache service.
Promise<any>Stop Apache service.
Promise<any>Restart Apache service.
Promise<string>Returns a promise with the Apache service status.
const { mods } = require('apache-api');
Promise<string[]>Show available Apache mods.
Promise<string[]>Show enabled Apache mods.
Promise<any>Enable an Apache mod.
| Param | Type | Description |
|---|---|---|
| mod | string | Mod to enable |
Promise<any>Disable an Apache mod.
| Param | Type | Description |
|---|---|---|
| mod | string | Mod to disable |
const { configs } = require('apache-api');
Promise<string[]>Show available Apache configs.
Promise<string[]>Show enabled Apache configs.
Promise<any>Enable an Apache config.
| Param | Type | Description |
|---|---|---|
| config | string | Config to enable |
Promise<any>Disable an Apache config.
| Param | Type | Description |
|---|---|---|
| config | string | Config to disable |
Promise<object|string>Read and parse (optional) a config.
| Param | Type | Description |
|---|---|---|
| config | string | Config to read |
| parseContent | boolean | Wether to parse content |
Promise<any>Parse (optional) and save a config.
| Param | Type | Description |
|---|---|---|
| config | object|string | Config to save |
| fromParsed | boolean | Wether to parse content |
FAQs
A simple Apache wrapper for Node.js.
The npm package apache-api receives a total of 4 weekly downloads. As such, apache-api popularity was classified as not popular.
We found that apache-api 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
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.