@shanzhai/merge-object-input

A Shanzhai input which builds an object by merging the objects retrieved by other inputs.

Usage no npm install needed!

<script type="module">
  import shanzhaiMergeObjectInput from 'https://cdn.skypack.dev/@shanzhai/merge-object-input';
</script>

README

@shanzhai/merge-object-input Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai input which builds an object by merging the objects retrieved by other inputs.

Example

The following two examples are equivalent:

new MergeObjectInput([
  new ConstantInput({
    a: 3,
    b: 10,
  }),
  new ConstantInput({
    c: 7,
  }),
]);

new ConstantInput({
  a: 3,
  b: 10,
  c: 7,
});

Dependencies

This package has no runtime dependencies.

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status