3.2.0 • Published 4 years ago
@absolunet/terminal v3.2.0
@absolunet/terminal
Terminal utilities
Install
$ npm install @absolunet/terminal
Usage
import { terminal } from '@absolunet/terminal';
terminal.setTheme({
logo: '🍭',
textColor: terminal.basicColor.magenta,
backgroundColor: '#cc00cc',
textOnBackgroundColor: terminal.basicColor.white,
spinnerColor: terminal.basicColor.magenta
});
terminal
.titleBox('Start');
.startSpinner('Checking dependencies')
;
terminal.process.runAsync('npm outdated', { silent:true }).then(({ stdout }) => {
terminal.stopSpinner();
if (stdout) {
terminal
.spacer();
.failure('Please update your project')
;
} else {
terminal.success('You are up to date!');
}
terminal.completionBox();
});
// Extend it
import { Terminal, Process } from '@absolunet/terminal';
class MyBetterTerminal extends Terminal {
}
class MyBetterProcess extends Process {
}
Documentation
View documentation
License
MIT © Absolunet
3.2.0
4 years ago
3.1.0
5 years ago
3.0.4
5 years ago
3.0.3
5 years ago
3.0.2
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.1.1
6 years ago
2.1.0
6 years ago
2.0.0
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.5.0
7 years ago
0.4.4
8 years ago
0.4.3
8 years ago
0.4.2
8 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.0
8 years ago
0.1.0
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago