A collection of useful utility functions
utility utilities string strings string-manipulation conditional-statements conditional condition conditions errors concurrency parallelism concurrent parallel compression decompression hash hashing conversion conversionsSimple file writer with atomic writing and race condition prevention.Can be used as a drop-in replacement to fs.writeFile().
safe atomic file writer fs race-condition-prevention write asynchronous race condition writingThink async version of the while statement.While condition returns true, executes action repeatedly, and then resolves the promise. Rejects if action returns a promise that rejects or if an error is thrown anywhere.
promise whilst while loop wait condition conditional async await promises bluebirdThink async version of the do…while statement.Executes action repeatedly while condition returns true and then resolves the promise. Rejects if action returns a promise that rejects or if an error is thrown anywhere.
promise do whilst while loop wait condition conditional async await promises bluebirdJavascript condition evaluator. Rewritten from the ground up from the original verdict, cleaner interface inspired from ruler by Garrett Johnson. Adds nesting and "any" vs "all" composite capabilities. Browser-friendly. The segmentation tree capabilities have been dropped and may be available in a separate module with this as a dependency, but are not baked in. For now.
rule rules engine builder boolean conditionBecause everyone loves a tryer! Conditional and repeated function invocation for node and browser. Sometimes, you want to defer calling a function until a certain pre-requisite condition is met. Other times, you want to call a function repeatedly until some post-requisite condition is satisfied. Occasionally, you might even want to do both for the same function.
functional-programming iteration retry-intervals repeat retry predicate conditional invocation execution loop condition termination exponential backoffLocks implements locking/synchronization mechanisms that have traditionally been used for protecting shared memory between multiple threads. JavaScript is inherently single threaded and does not suffer from these security and stability issues. However, because of its asynchronous eventy nature JavaScript can still benefit from making particular operations wait for the completion of others.
locks mutex semaphore condition rwlock synchronize synchronise synchronization synchronisationPattern-guard is a small module that brings you the Haskell guards syntax in JavaScript. Please note that, like in Haskell, the first truthy guard will be returned.
haskell guards pattern-guard condition pattern-guardsMany RBAC (Role-Based Access Control) implementations differ, but the basics is widely adopted since it simulates real life role (job) assignments. But while data is getting more and more complex; you need to define policies on resources, subjects or even environments. This is called ABAC (Attribute-Based Access Control). With the idea of merging the best features of the two (see this NIST paper); this library implements RBAC basics and also focuses on resource, action attributes and conditions.
roles access-control attributes conditions nodejs typescript tests access role attribute grant allow condition permission action rbac abac resource express admin user acl glob wildcardAn advanced battery gauge for macOS. Apple Juice can show you the estimated battery time remaining right within the status bar and notify you about certain percentages, if you want. Get even more information about your current battery status, without cluttering your screen, with the Apple Juice Today Widget. Just take a quick glance at your battery’s stats, whenever you want.
battery-gauge battery-monitor battery time apple-juice xcode today-widget high-sierra mojave power-usage amperage percentage condition battery-level sierra chargeCritical sections in the network level. The mutex-server is an npm module that can be used for building a mutex server. When you need to control a critical section on the entire system level, like distributed processing system using the network communications, this mutex-server can be a good solution.
nodejs typescript server websocket mutex critical-section tstl tgrid semaphore condition variable latch barrier write read unique shared lock acquire remote critical section threadPrecondition checks for Node.js inspired by Guava's precondition checking utilities. into a more compact and declarative check bellow.
precondition assert invariant contract conditionWaitForAll and WaitForAny on EventEmitter instances. WaitForAny will wait until one of the specified EventEmitter is done. By contrast, WaitForAll will wait until all of the specified EventEmitter are done.
wait events async conditionPackage order enables easier ordering and comparison tasks. This package provides functionality to easily define and apply order on values. It works out of the box for most primitive types and their pointer versions, and enable order of any object using three-way comparison with a given func(T, T) int function, or by implementing the generic interface: func (T) Compare(T) int.
search select max sort order compare min partition comparable binary-search pivot condition min-maxThis specification is only a draft at this stage and has not been submitted. This will ensure that the requested type, features and fulfillment length are all accepted by the current implementation.
cryptographic condition fulfillment interledger payment assured escrowUsing ilp.createPlugin is an alias for the deprecated ilp-plugin module. It creates an instance of a BTP plugin that will attempt to connect to a local moneyd instance by default. This can be overridden using environment variables. The module looks for ILP_PLUGIN_OPTIONS (or ILP_CREDENTIALS however this is deprecated) and ILP_PLUGIN. ILP_PLUGIN_OPTIONS must contain a JSON object and will be passed into the constructor of a new plugin instance. The name of the plugin type to instantiate must be stored as a string in the environment variable ILP_PLUGIN or it will default to ilp-plugin-btp.
interledger ilp payment-request psk spsp ipr crypto condition payments
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.