option-multiplexer

Create combinations of configurations from an initial set of options.

Usage no npm install needed!

<script type="module">
  import optionMultiplexer from 'https://cdn.skypack.dev/option-multiplexer';
</script>

README

option-multiplexer

Create combinations of configurations from an initial set of options.

var multiplex = require('option-multiplexer');

var choices = {
    cheese: [ 'swiss', 'gouda', 'cheddar' ],
    meat: [ 'salami', 'chicken' ],
    bread: [ 'flatbread', 'white', 'italian' ]
};

var sandwiches = multiplex(choices);

console.log(sandwiches);