New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

surmount

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

surmount

Minimal, well behaved dependency based scheduler

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

surmount

Minimal, well behaved dependency based scheduler

license npm version build status

Getting Started

$ npm install --save surmount

Features

  • Optimized for parallel execution
  • Propagates arguments to the functions
  • Propagates errors to the affected functions
  • Returns a promise of an object containing return values and/or errors
  • Throws an error on circular dependencies
  • Throws an error on missing dependencies
  • Not an orchestrator, task registry or a build system

Usage


// example.js

const tie = function (err) {
	if (err) {
		throw err
	}

	console.log('Tied the double windsor knot.')
}

tie.label = 'tie'
tie.dependency = ['shirt']

// ...

const dress = new Surmount([
	tie,
	shoes,
	jacket,
	shirt,
	pants
])

dress()
.then(function (result) {
	console.log(result)
})

// That pair of grey wool trousers.
// Pale blue shirt to go under the jacket.
// Not sure how to wear a tweed jacket with the rest of the pieces.
// Took a pair of brown suede shoes out of the box.
// Tied the double windsor knot.

 

License

Copyright (c) 2016 Mark Milstein mailto:mark@epiloque.com

surmount is licensed under the MIT License

http://www.opensource.org/licenses/MIT

FAQs

Package last updated on 25 Jan 2016

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