Permyscript - adamjgrant/permutations GitHub Wiki

Permyscript is a shorthand syntax to compile to regular ol' json. It is finely-tuned to make permutation configurations easier to write.

Despite being a script, it does not require any special extra compiler, instead it leverages the text field of a JSON array value.

{
  "main": [ 
    "Hello ", { "ps": "my honey|my darling|my ragtime, summer gal" }
  ]
}

This is the equivalent of

{
  "main": [
    "Hello ", [
      "my honey", "my darling", "my ragtime, summer gal"
    ]
}

And outputs

Hello my honey
Hello my darling
Hello my ragtime, summer gal

The benefits are evident in practice as the constant separating by commas and closing of quotations can become fatiguing.