🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

anothersequencer

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anothersequencer - npm Package Compare versions

Comparing version

to
0.1.7

2

package.json
{
"name": "anothersequencer",
"version": "0.1.6",
"version": "0.1.7",
"description": "Simple script tree sequencer in javascript. Allows creating fairly complex trees of sync/async functions or requestAnimationFrame functions with optional delays, as well as subscribing to particular outputs in the tree at any time.",

@@ -5,0 +5,0 @@ "main": "sequencer.js",

@@ -7,2 +7,4 @@ ## Javascript function sequencing

For a DAG Node sequencer with promise-returning sequences: [AcyclicGraph.js](https://github.com/brainsatplay/acyclicgraph)
Usage:

@@ -66,3 +68,5 @@

let sub = sequencer.subscribeToOperation('repeater',onResult); //or .subscribe //adds a triggered function on result
//add a triggered function on result
sequencer.subscribe('repeater',(res)=>{console.log('subscribed',res)});
//You could even, say, subscribe one tagged sequence to another tagged sequence.

@@ -69,0 +73,0 @@