npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sh.orchestration-tools

v3.3.2

Published

A collection of tools that help building infrastructures or to orchestrate resources.

Downloads

49

Readme

OrchestrationTools

Collection of orchestration-tools that help building an infrastructure or to orchestrate resources through NodeJS. Also comes with universal tools such as collections.

|Version|Coverage|Vulnerabilities|Master|Master-pre-v3.0.0|Master-pre-v2.0.0| |:-|:-|:-|:-|:-|:-| |Current Version|Coverage Status|Vulnerabilities|Build Status|Build Status|Build Status| |Weekly Downloads|||Build Status||

Install from npm

This package can be installed using the following command: npm install sh.orchestration-tools.

JSDoc

The tools come fully typed in JSDoc, and the documentation for all released versions can also be found here: https://mrshoenel.github.io/orchestration-tools/.

Current list of included tools

  • Job - a class that can encapsulate and represent any (asynchronous) work. Supports Promise-based work, enhanced states, simple eventing and progress. As of v2.1.0, JobWithCost has been removed and cost is now supported by Job.
  • JobQueue - a queue that supports parallel jobs with free degree of parallelism.
  • JobQueueCapabilities - an extension to the JobQueue that can manage and run jobs based on their cost, rather than on plain parallelism.
  • Progress - a class used to report any kind of (generic) progress. Supports callbacks, events and Observables through RxJS.
  • ProgressNumeric - an extension (and simplification) of Progress especially for numeric progress.
  • IntervalScheduler and Interval provide a scheduling mechanism to schedule using timeouts or intervals (new in v1.6.0). Also, the schedulers now have a common base-class (Scheduler) and their schedules have one, too (Schedule).
  • ProcessWrapper and related classes (such as ProcessResult and ProcessOutput) to encapsulate child processes and let them run as Promises or Obervables (since v1.8.0).
  • Resolve - a class containing helpers to determine types of variables and to resolve functions and Promises to values of any type (since v2.6.0).
  • ManualScheduler and ManualSchedule provide mechanisms that align with the scheduler-concept and allow to trigger events manually (since v2.7.0).
  • Collection, Queue, ConstrainedQueue (a queue with limited size), ProducerConsumerQueue (a queue where producers add (defer if full) and consumers obtain items (defer if empty), since v2.30.0), Stack, ConstrainedStack (a stack with limited size, since v2.28.0) and LinkedList*/LinkedListNode* provide fully tested collections that are often needed in JavaScript (since v2.9.0/*v2.10.0)
  • Dictionary and Cache (which extends it) are fully generic dictionaries that support strings and Symbols as keys. Cache is a capacity-constrained dictionary that supports eviction-policies such as LRU/MRU, LFU/MFU, FIFO/LIFO etc. Also, it supports eviction based on an optional timeout per value (like a weak map) (since v2.21.0; both are deprecated, use DictionaryMapBased and CacheMapBased instead as of v2.22.0)
  • CacheWithLoad, an extension of CacheMapBased that introduces a second concept of size constrainment based on a load (since v2.22.0).
  • EqualityComparer and DefaultEqualityComparer are used within the collections to provide default- and custom-capabilities for comparing items (since v2.9.0)
  • Comparer and DefaultComparer to equate items in terms of size (e.g. for sorting) (since v2.10.0)
  • formatValue, formatError, wrapError and throwError are the first of new tools for values and Errors (since v2.19.0)
  • Resource and ResourceSelector are used to build pools of resources and to select from them using a strategy, such as least recently used, or Round Robin etc. (since v3.3.0)
  • ~~CalendarScheduler and Calendar provide mechanism to schedule jobs based on iCal-calendars from any source (new in v1.4.0).~~ These were removed beginning with v3.0.0 and are now to be found in the package sh.misc-tools.

Breaking changes

  • Between v1.8.0 and v2.0.0 there were breaking changes regarding Progress itself and how it is handled in conjunction with Job. If you therefore need to stick with v1.x.x, please use the latest stable from the master-pre-v2.0.0-branch.
  • Calendar-related tools and its Scheduler were removed in version v3.0.0 and have been moved into the package sh.misc-tools (available via npm npm install sh.misc-tools).