Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "kgo", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Flow control the super easy way", | ||
@@ -5,0 +5,0 @@ "main": "kgo.js", |
@@ -14,2 +14,14 @@ kgo | ||
kgo(result name, asynchronous function); | ||
where result name is an arbitrary string that can be concidered a name for the output of the function | ||
and asynchronous function is a function that, when complete, calls a callback with its results. | ||
kgo returns itsself, so it can be chained: | ||
kgo(name, fn)(name, fn)(name, fn) | ||
## Example | ||
require kgo: | ||
@@ -21,8 +33,6 @@ | ||
note: functions ****MUST**** have function names! | ||
note: functions ****MUST**** have argument names that match the named result of other functions! | ||
another note: functions ****MUST**** have argument names that match the names of other functions! | ||
another note: functions ****MUST**** define a callback as the last argument. | ||
and another note: functions ****MUST**** define a callback as the last argument. | ||
kgo('things', function(cb){ | ||
@@ -103,2 +113,14 @@ | ||
} | ||
}); | ||
}); | ||
There is also a totally safe implementation if you require('kgo/kgoSafe') | ||
The syntax is slightly different: | ||
kgo(name, [named results], function); | ||
But it is boring. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7461
123