Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apache2-conf-formatter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apache2-conf-formatter

Format apache2 configuration files

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

apache2-conf-formatter Travis Codecov

Format apache2 configuration files

Install

$ npm install apache2-conf-formatter

Usage

const apache2ConfFormatter = require('apache2-conf-formatter');

console.log(apache2ConfFormatter.format('httpd.conf'));
//=> Promise <String> the formatted configuration file

API

format(path, [options])

Format the given file

arguments: path the path to file. options (optional) Object see options

returns: Promise <String> the formatted configuration file

options
useTabs

Type: boolean

Default: false

Indent lines with tabs instead of spaces

tabWidth

Type: number

Default: 2

Specify the number of spaces/tabs per indentation-level

License

MIT © SavageCore

FAQs

Package last updated on 23 May 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc