DotBox

A simple, readable configuration language.
// Say hello to DotBox
key = "value"

multiline_string =
	"
	| Hey there!
	| How's it going?
	"

totally_true = true
definitely_false = false

"any text for your key" = "something"

"
| even multiline
| text can be used
" = "something"

set = {
	decimal = -1_000_000.000_000
	binary = -0b0000_0001
	octal = -0o0123_4567
	hex = -0xdead_beef // Capital letters can be used too!
}

list = [
	1
	true
	"three"
]

bool? = false

Install

Ready... Set... Done!
# Install with NPM
npm install --global @dotbox/cli

# Install with Yarn
yarn add --global @dotbox/cli

# Run directly with NPX
npx @dotbox/cli

Format

DotBox comes with a formatter to keep your files clean and readable.
# Format one file
dotbox format ./my.box

# Format multiple files
dotbox format ./my.box ./my_other.box

Compile

DotBox can compile your files to JSON.
# Compile a DotBox file and print the resulting JSON.
dotbox compile ./my.box

# Compile a DotBox file and write the resulting JSON to a file.
dotbox compile ./my.box --output ./my.json