3.2.0 • Published 3 years ago

@absolunet/terminal v3.2.0

Weekly downloads
532
License
MIT
Repository
github
Last release
3 years ago

@absolunet/terminal

npm npm dependencies npms Travis CI

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

3 years ago

3.1.0

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.5.0

6 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago