Format apache2 configuration files
$ npm install apache2-conf-formatter
const apache2ConfFormatter = require('apache2-conf-formatter');
console.log(apache2ConfFormatter.format('httpd.conf'));
//=> Promise <String> the formatted configuration file
Format the given file
arguments:
path
the path to file.
options
(optional) Object
see options
returns:
Promise
<String> the formatted configuration file
Type: boolean
Default: false
Indent lines with tabs instead of spaces
Type: number
Default: 2
Specify the number of spaces/tabs per indentation-level
MIT © SavageCore