Showing 1-20 of 504,668 packages
Lets you easily define a default value for undefined options, with optional support for Promises
Amplify GraphQL default value transformer
return fn() or default value (in case of exception)
default-value function
Read env with default value
Applies a default value to a variable if it is null or undefined.
fashion-model default value mixin
Get a default value when a value is nullish or invalid type
If value is null or undefined, it sets a default value instead.
> Return default value if wrong type
Interface for process.env variables that allows setting a default value if none is set
A library and CLI tool for generating a default value from a JSON schema
Runtime default value reflection from TypeScript files for properties
Tiny module for setting a default value when a parameter is undefind or null
Get an object property, setting and returning default value if does not exist yet.
Populate a given object from process.env with default value and types.
Curried function that calls `JSON.parse` on provided input returning either the parsed JSON or the specified default value if the data fails to parse as valid JSON instead of throwing a `SyntaxError`.
Recma plugin to set the default value `() => null` for the Components in MDX in case of missing or not provided.
Ignore errors conditionally in sync / async / promise functions and return a default value.
A Default Value handler for javascript