0.1.8 • Published 2 months ago

nginx-format v0.1.8

Weekly downloads
12
License
MIT
Repository
github
Last release
2 months ago

nginx-format

Library for formating nginx config files

Installation

npm install nginx-format --save

Usage

const { nginxFormat } = require('nginx-format')

const fs = require('fs')
const formattedConfig = nginxFormat(fs.readFileSync('path_to_config', { encoding:  'utf8' }))

console.log(formattedConfig)

Default options

const formattedConfig = nginxFormat(configString,{
	indent: '\t',
	newLineSeparator: '\n',
	maxStatementLength: 80, // if statement is longer than that it will be splitted into multiple lines
})
0.1.8

2 months ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

1.0.0

4 years ago