\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 www.csarite.com
KUJUNTI.ID MINISH3LL
Path : /lib/node_modules/nextjs/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : //lib/node_modules/nextjs/Readme.md


# Next  
Because asynchronous calls suck out your brain without a proper async handler. This one is just 4 lines yet it solves a huge issue.

### Install
```config
	npm install nextjs
```

### How it works?
1. Create a `Next Instance`: `var next = new Next(2, finish)`
2. Then you call `next()` as many times as you specified in the `count`. In this example it is *2*.
3. After `next` was called *2 times*, the `finish` function will be called.

### Example
```javascript
	// Include
	var Next = require('nextjs');
	
	// CREATE a Next Instance
	var next = new Next(2, finish);
	
	// Log Start
	console.log('start');
	
	// Will happen after 5 seconds passed
	setTimeout(function(){ console.log('A'); next(); }, 5000); 
	
	// Will happen after 2 seconds passed
	setTimeout(function(){ console.log('B'); next(); }, 2000); 
	
	// Will happen in the end after 5 seconds passed
	function finish(){ console.log('finished'); } 
	
	// output result
	// 0 second => start
	// 2 second => B
	// 5 second => A
	// 5 second => finished
```

## Next parameters
- **count**: the number of times you will have to call the `next()` instance. `required` `integer`
- **finish**: finishing callback `required` `function`

## Key features
- It's just 4 lines - `0.16kb`
- Easy to use
- Its part of `dietjs`

© KUJUNTI.ID