UNPKG

github-action-readme-generator

Version:

The docs generator for GitHub Actions. Auto-syncs action.yml to README.md with 8 sections: inputs, outputs, usage, badges, branding & more. Works as CLI or GitHub Action.

14 lines 434 B
/** * Type guard to check if an `unknown` value is an `Error` object. * * @param value - The value to check. * * @returns `true` if the value is an `Error` object, otherwise `false`. */ export const isError = (value) => !!value && typeof value === 'object' && 'message' in value && typeof value.message === 'string' && 'stack' in value && typeof value.stack === 'string'; //# sourceMappingURL=is-error.js.map