0.0.7 • Published 2 years ago

@shanzhai/wrap-in-object-output v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@shanzhai/wrap-in-object-output Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai output which wraps a value in an object with a given key.

Usage

Give an instance of WrapInObjectOutput to a Step as an output and it will wrap the value in an object before passing it to its nested Output.

For example, the following examples are equivalent:

new CopyStep(
  `Example`,
  new ConstantInput([1, 2, 3]),
  new WrapInObjectOutput(`testKey`, new ExampleOutput())
);
new CopyStep(
  `Example`,
  new ConstantInput({ testKey: [1, 2, 3] }),
  new ExampleOutput()
);

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