| 
									
										
										
										
											2016-05-20 01:25:17 +02:00
										 |  |  | # early
 | 
					
						
							| 
									
										
										
										
											2016-09-19 20:50:01 +02:00
										 |  |  | minimal and fast loading plugin for startup time measuring | 
					
						
							| 
									
										
										
										
											2016-05-20 01:25:17 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-18 23:12:58 +02:00
										 |  |  | ## Availabililty
 | 
					
						
							| 
									
										
										
										
											2017-02-17 18:56:58 +01:00
										 |  |  | [](https://www.npmjs.com/package/early) | 
					
						
							|  |  |  | [](https://GitLab.com/pushrocks/early) | 
					
						
							|  |  |  | [](https://github.com/pushrocks/early) | 
					
						
							|  |  |  | [](https://pushrocks.gitlab.io/early/) | 
					
						
							| 
									
										
										
										
											2016-09-18 23:12:58 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Status for master
 | 
					
						
							| 
									
										
										
										
											2017-02-17 18:56:58 +01:00
										 |  |  | [](https://GitLab.com/pushrocks/early/commits/master) | 
					
						
							|  |  |  | [](https://GitLab.com/pushrocks/early/commits/master) | 
					
						
							|  |  |  | [](https://www.npmjs.com/package/early) | 
					
						
							| 
									
										
										
										
											2016-09-18 23:12:58 +02:00
										 |  |  | [](https://david-dm.org/pushrocks/early) | 
					
						
							|  |  |  | [](https://www.bithound.io/github/pushrocks/early/master/dependencies/npm) | 
					
						
							|  |  |  | [](https://www.bithound.io/github/pushrocks/early) | 
					
						
							|  |  |  | [](https://nodejs.org/dist/latest-v6.x/docs/api/) | 
					
						
							|  |  |  | [](https://nodejs.org/dist/latest-v6.x/docs/api/) | 
					
						
							|  |  |  | [](http://standardjs.com/) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-22 00:38:14 +02:00
										 |  |  | ## Usage
 | 
					
						
							| 
									
										
										
										
											2017-02-17 18:56:58 +01:00
										 |  |  | Use TypeScript for best in class instellisense. | 
					
						
							| 
									
										
										
										
											2016-05-20 01:25:17 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-22 00:38:14 +02:00
										 |  |  | ```typescript | 
					
						
							|  |  |  | // Put the following at the start of your module | 
					
						
							| 
									
										
										
										
											2016-05-20 01:25:17 +02:00
										 |  |  | import * as early from "early"; | 
					
						
							| 
									
										
										
										
											2016-05-22 00:38:14 +02:00
										 |  |  | early.start("myModuleName"); | 
					
						
							|  |  |  | /* | 
					
						
							|  |  |  | do your loading stuff | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2016-09-15 14:59:22 +02:00
										 |  |  | early.stop().then((loadingTime:number) => { // loadingTime in milliseconds | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | }); // stop "early" when your module is ready | 
					
						
							| 
									
										
										
										
											2016-05-20 01:25:17 +02:00
										 |  |  | ``` | 
					
						
							| 
									
										
										
										
											2016-09-19 20:48:11 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-03 15:15:36 +01:00
										 |  |  | For further information read the linked docs at the top of this README. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-17 18:56:58 +01:00
										 |  |  | > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
 | 
					
						
							| 
									
										
										
										
											2017-02-03 15:15:36 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-17 18:56:58 +01:00
										 |  |  | [](https://push.rocks) |