@validatem/wrap-value-as-option

Validatem validator for wrapping non-object values as a single-property object, useful for functions that accept either a single value or an options object

Usage no npm install needed!

<script type="module">
  import validatemWrapValueAsOption from 'https://cdn.skypack.dev/@validatem/wrap-value-as-option';
</script>

README

@validatem/wrap-value-as-option

Documentation for this module has not been written yet. By the time it reaches 1.0.0, it will have full documentation.

In the meantime, check out the example.js file in the repository for a usage demonstration.