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

[Question] Can I use with ora? #5

Closed
gluons opened this issue Sep 18, 2017 · 5 comments
Closed

[Question] Can I use with ora? #5

gluons opened this issue Sep 18, 2017 · 5 comments

Comments

@gluons
Copy link

gluons commented Sep 18, 2017

Thank you very much for making the awesome tool.
But I have a question.

Is it possible to use with ora?

It should be 😎 cool if I can it these together.

@bokub
Copy link
Owner

bokub commented Sep 18, 2017

I don't know, what would you like to do?
Could you give an example?

@gluons
Copy link
Author

gluons commented Sep 18, 2017

Something like this 😁

@bokub
Copy link
Owner

bokub commented Oct 5, 2017

You can hack it to make it work like you want (a little bit tricky):

const spinner = require('ora')(' ');
const rainbow = require('chalk-animation').rainbow('hello world').stop();

setInterval(() => {
	spinner.text = rainbow.frame().substring(11);
	spinner.render();
}, 50);

N.B: frame() is only available in the last version of chalk-animation

@bokub bokub closed this as completed Oct 5, 2017
@gluons
Copy link
Author

gluons commented Oct 7, 2017

Awesome! It's beautiful. 😻

chalk-animation-ora

@latel
Copy link

latel commented Oct 25, 2017

awesome

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

No branches or pull requests

3 participants