sindresorhus/terminal-link

Stderr support #4

sindresorhus posted onGitHub


@issuehuntfest has funded $40.00 to this issue. See it on IssueHunt

posted by IssueHuntBot about 6 years ago

How would you like this API to look? We would have to return which of stdout or stderr that's supported. Having a hard time figuring out how we can keep this non-breaking without bloating the API too much.

posted by kevva about 6 years ago

@kevva Same as for chalk?

posted by langpavel about 6 years ago

Yes, either separate methods or returning an object with both.

// Defaults to `stdout` to keep the current API
terminalLink(...)
terminalLink.isSupported(...)

// Returns `stdout`
terminalLink.stdout(...)
terminalLink.stdout.isSupported(...)

// Returns `stderr`
terminalLink.stderr(...)
terminalLink.stderr.isSupported(...)

or

// Returns `{stderr, stdout}`
terminalLink(...)
terminalLink.isSupported(...)
posted by kevva about 6 years ago

// Returns stderr terminalLink.stderr(...) terminalLink.stderr.isSupported(...)

šŸ‘

posted by sindresorhus about 6 years ago

@tom-sherman has submitted a pull request. See it on IssueHunt

posted by IssueHuntBot about 6 years ago

@sindresorhus has rewarded $36.00 to @tom-sherman. See it on IssueHunt

  • :moneybag: Total deposit: $40.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $4.00
posted by issuehunt-app[bot] over 5 years ago

Fund this Issue

$40.00
Rewarded

Rewarded pull request

Recent activities

tom-sherman was rewarded by sindresorhus for sindresorhus/terminal-link# 4
over 5 years ago
tom-sherman submitted an output to  sindresorhus/ terminal-link# 4
about 6 years ago