Package Exports
- cli-resize
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cli-resize) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cli-resize
Listen for the terminal resize event in a friendly way.
☁️ Installation
$ npm i --save cli-resize
📋 Example
const cliResize = require("cli-resize");
// Listen for resize
cliResize(size => {
console.log(size);
});
console.log("Resize the terminal.");
// A hack to keep the process opened for 10sec
setTimeout(function() {
console.log("Test ended.");
}, 10000);
📝 Documentation
CliResize(fn)
cliResize Add a new resize event listener.
Params
- Function
fn
: The callback function which is called when the terminal is resized.
😋 How to contribute
Have an idea? Found a bug? See how to contribute.
💰 Donations
Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀
PayPal donations are appreciated too! Each dollar helps.
Thanks! ❤️
💫 Where is this library used?
If you are using this library in one of your projects, add it in this list. ✨
3abn
—A 3ABN radio client in the terminal.cli-update
—A library to update stdout output.share-term
—Share the terminal with your friends.