
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
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.
| Param | Type | Description |
|---|---|---|
| sites | boolean | Wether to list sites folder |
Promise<string[]>Show enabled Apache configs.
| Param | Type | Description |
|---|---|---|
| sites | boolean | Wether to list sites folder |
Promise<any>Enable an Apache config.
| Param | Type | Description |
|---|---|---|
| config | string | Config to enable |
| sites | boolean | Wether to enable sites folder |
Promise<any>Disable an Apache config.
| Param | Type | Description |
|---|---|---|
| config | string | Config to disable |
| sites | boolean | Wether to disable sites folder |
Promise<object|string>Read and parse (optional) a config.
| Param | Type | Description |
|---|---|---|
| config | string | Config to read |
| sites | boolean | Wether to use sites folder |
| parseContent | boolean | Wether to parse content |
Promise<any>Parse (optional) and save a config.
| Param | Type | Description |
|---|---|---|
| config | object|string | Config to save |
| sites | boolean | Wether to use sites folder |
| 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
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.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.