Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kgo

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kgo - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc