1.5.3 • Published 5 years ago

vanilla-lang v1.5.3

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Vanilla

Vanilla is a elegant json inspired configuration/markup language

Differences

Types: numbers, strings, booleans, null, objects

Rules 1. The language can only go 3 layers down (root -> object/variable/array -> array/variable) 2. Objects, variables, arrays can not contain an item of the same type, recursion does not exist 3. Arrays can not contain variables only values 4. Mixins can only be used in variables

Installation

npm install -g vanilla-lang

Usage

root
  @test "this is a mixin"
  'this is a example comment'
  'this is a example
  multiline comment'
  user
    password @test
    inventory
      - "item 1"
      - "item 2"
      - "item 3"

In the javascript code:

const vanilla = require("vanilla-lang");
const config = vanilla.load("config.va");
console.log(config.user);
1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.5

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago