apache2-conf-formatter

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i apache2-conf-formatter

Weekly Downloads

3

Version

0.2.0

License

MIT

Unpacked Size

4.47 kB

Total Files

4

Last publish

Collaborators

  • savagecore