You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					42 lines
				
				965 B
			
		
		
			
		
	
	
					42 lines
				
				965 B
			| 
								 
											4 years ago
										 
									 | 
							
								# listr-silent-renderer [](https://travis-ci.org/SamVerschueren/listr-silent-renderer)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> Suppress [Listr](https://github.com/SamVerschueren/listr) rendering output
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## Install
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								$ npm install --save listr-silent-renderer
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## Usage
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```js
							 | 
						||
| 
								 | 
							
								const SilentRenderer = require('listr-silent-renderer');
							 | 
						||
| 
								 | 
							
								const Listr = require('listr');
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const list = new Listr([
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        title: 'foo',
							 | 
						||
| 
								 | 
							
								        task: () => Promise.resolve('bar')
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								], {
							 | 
						||
| 
								 | 
							
								    renderer: SilentRenderer
							 | 
						||
| 
								 | 
							
								});
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								list.run();
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## Related
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- [listr](https://github.com/SamVerschueren/listr) - Terminal task list
							 | 
						||
| 
								 | 
							
								- [listr-update-renderer](https://github.com/SamVerschueren/listr-update-renderer) - Listr update renderer
							 | 
						||
| 
								 | 
							
								- [listr-verbose-renderer](https://github.com/SamVerschueren/listr-verbose-renderer) - Listr verbose renderer
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## License
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								MIT © [Sam Verschueren](https://github.com/SamVerschueren)
							 |