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

async-sequencer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-sequencer

This module helps you easily create sequences that must be executed in sequence through Promise.

  • 1.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

async-sequencer

🌳 Pure javascript based lightweight sequencer module (support browser with webpack!)

😊 Typescript(.d.ts) Support! Fully Intellisensed

This module helps you easily create sequences that must be executed in sequence through Promise.

Install

npm install --save async-sequencer

Usage

main.js

const {Sequencer} = require(`async-sequencer`)

// Data shared between sequences
let data = {number : 1}

Sequencer(

    // List Of Sequence Function
    [
        require('./Sequence/a'),
        require('./Sequence/b'),
        require('./Sequence/c'),
        require('./Sequence/d')
    ],

    ({
        sequenceNumber,
        isSequenceSuccess,
        isEndOfSequence,
        sequenceResult
    })=>{

        // Callback Logic
    }

, data)

./Sequence/a

const {Sequence} = require(`async-sequencer`)

module.exports = Sequence(({resolve, reject, data})=>{

    // Sequence Logic
    resolve()
})

License

MIT Licensed.

Keywords

FAQs

Package last updated on 03 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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