This repository was archived by the owner on Feb 3, 2022. It is now read-only.
Use fixed window size if it is not available #24
Labels
good first issue
Good for newcomers
hacktoberfest
A good hacktoberfest issue for someone new to the project
This package uses the
window-size
module to make sure the success message formats correctly based on the window size of the user's terminal.Like in twilio-run/#82, it could break if the
window-size
module cannot return a width and height.We should default to a fixed width of, say, 80 in the case where
window-size
doesn't return a value.Steps to implement:
src/create-twilio-function
calledwindow-size.js
get
function that returns either the object that thewindow-size
module would return or a default of{ width: 80, height: 300 }
(including tests)window-size
insuccess-message.js
with this new moduleThe text was updated successfully, but these errors were encountered: