MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / red

Function red

scripts/apiExtractor.js:115–117  ·  view source on GitHub ↗

* Surrounds the message with control characters to display red text on a * terminal. * See https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html * @param message {string}

(message)

Source from the content-addressed store, hash-verified

113 * @param message {string}
114 */
115function red(message) {
116 return `\u001b[31m${message}\u001b[0m`;
117}
118
119/**
120 * Prints a failure reason and exits the process with status code 1.

Callers 1

exitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected