Skip to content

Latest commit

 

History

History

wrap-in-object-output

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@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