Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support getting image as a string #3

Merged
merged 1 commit into from
Jul 23, 2017
Merged

Support getting image as a string #3

merged 1 commit into from
Jul 23, 2017

Conversation

kevva
Copy link
Contributor

@kevva kevva commented Jul 23, 2017

Sometimes you don't want to log the image directly, but instead get the string and log it manually later, like in https://github.com/kevva/ink-image.

@@ -3,7 +3,7 @@ const fs = require('fs');
const iterm2Version = require('iterm2-version');
const ansiEscapes = require('ansi-escapes');

class UnsupportedTerminal extends Error {
class UnsupportedTerminal extends Error { // eslint-disable-line unicorn/custom-error-definition
Copy link
Contributor Author

@kevva kevva Jul 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't want to change this to UnsupportedTerminalError in case some users depends on checking the error name (could be highly unlikely though). This would need a major then.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it and did a major version.

@kevva kevva mentioned this pull request Jul 23, 2017
@sindresorhus sindresorhus merged commit c2d70ed into master Jul 23, 2017
@sindresorhus sindresorhus deleted the as-string branch July 23, 2017 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants