sls-dev-tools
Version:
The Dev Tools for the Serverless World
33 lines (29 loc) • 484 B
JavaScript
;
const blessed = require("blessed");
class Box extends blessed.box {
constructor(parent, width, height, content) {
super({
parent,
width,
height,
left: "right",
top: "center",
align: "center",
padding: {
left: 2,
right: 2
},
border: "line",
style: {
fg: "green",
border: {
fg: "green"
}
},
content
});
}
}
module.exports = {
Box
};