Displaying 1 to 20 from 24 results

streamjs - Lazy Object Streaming Pipeline for JavaScript

  •    Javascript

Stream.js is a lightweight (2.6 KB minified, gzipped), intensely tested (700+ assertions, 97% coverage) functional programming library for operating upon collections of in-memory data. It requires EcmaScript 5+, has built-in support for ES6 features and works in all current browsers, Node.js and Java 8 Nashorn. Before explaining how Stream.js works in detail, here's a few real world code samples.

stream.js - A tiny stand-alone Javascript library for streams

  •    Javascript

stream.js is a tiny Javascript library that unlocks a new data structure for you: streams. Go to https://dionyziz.github.io/stream.js-website/ to read all about what streams are and how they can make your code better and your soul happier.

lazypipe - Lazily create a pipeline out of reusable components. Useful for gulp.

  •    Javascript

Lazypipe allows you to create an immutable, lazily-initialized pipeline. It's designed to be used in an environment where you want to reuse partial pipelines, such as with gulp. This module returns a function that can be used to start building a lazypipe. Individual steps are added via the .pipe() method. At any point, a new lazypipe can be built by adding to an existing one, without affecting the previous lazypipe. Lazypipes can even be used as steps within another lazypipe.

npm-lazy-mirror - A lazy mirroring server for npm

  •    Javascript

A lazy mirroring local npm server.See example/server-config.json for usage.




angular-scroll-animate - An Angular

  •    Javascript

An Angular.js directive which allows you to perform any javascript actions (in the controller, or on the element) when an element is scrolled into or out of, the users viewport, without requiring any other dependencies.The goal of this directive is to be small and focused around behaviour that changes when scrolled in and out of view, without requiring jQuery. You can add / remove CSS classes in the callbacks, or execute any arbitrary javascript you want such as pre-loading of data, images or anything else.

iterum - Handling iterables like lazy arrays.

  •    Javascript

iterum library provides a class for handling iterable transformations inspired in Array methods and lodash/fp functions. This library also supplies combinatorial functions like permutations, combinations, variations, product, power and powerSet that has a high computational cost but this library is able to support taking advantage of lazy evaluation.Then, obj can be processed as an ordered list of values. However, unlike built-in iterables (Array, Set, Map, String, etc), obj is a lazy iterable. It means that, thanks to generators, obj does not store the computed values in memory and its values are computed just when are required. These are the essential features for implementing lazy evaluation.

lazy-require - Lazy require allows you to require modules lazily, meaning that when you lazy require a missing module, it is automatically installed

  •    Javascript

Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.Older environments may need Babel's Polyfill or something similar.

p-defer - Create a deferred promise

  •    Javascript

Don't use this unless you know what you're doing! Prefer the Promise constructor.The above is just an example. Use delay if you need to delay a promise.


p-lazy - Create a lazy promise that defers execution until `.then()` or `.catch()` is called

  •    Javascript

Useful if you're doing some heavy operations and would like to only do it when the promise is actually used.Same as the Promise constructor. PLazy is a subclass of Promise.

lazy-value - Create a lazily evaluated value

  •    Javascript

Useful when a value is expensive to generate, so you want to delay the computation until the value is needed. For example, improving startup performance by deferring nonessential operations.Expected to return a value.

import-lazy - Import a module lazily

  •    Javascript

Note: Version 3 is exclusively Proxy-based and requires Node.js 6+. Use version 2 if you need Node.js <=5 support.

define-lazy-prop - Define a lazily evaluated property on an object

  •    Javascript

Useful when the value of a property is expensive to generate, so you want to delay the computation until the property is needed. For example, improving startup performance by deferring nonessential operations.Object to add property to.

sequency - ⚡️ Type-safe functional sequences for processing iterable data

  •    TypeScript

Type-safe functional sequences for processing iterable data in TypeScript and JavaScript. Sequency is a lightweight (5 KB minified), intensely tested (200+ tests, 99% coverage), type-safe functional programming library for processing iterable data such as arrays, sets and maps. It's written in TypeScript, compiles to ES5-compatible JavaScript and works in all current browsers and Node applications. The API is inspired by Sequences from the programming language Kotlin.

node-lazystream - Create streams lazily when they are accessed (read from/written to).

  •    Javascript

Sometimes you feel the itch to open all the files at once. You want to pass a bunch of streams around, so the consumer does not need to worry where the data comes from. From a software design point-of-view this sounds entirely reasonable. Then there is that neat little function fs.createReadStream() that opens a file and gives you a nice fs.ReadStream to pass around, so you use what the mighty creator deities of node bestowed upon you. This package provides two classes based on the node's Streams3 API (courtesy of readable-stream to ensure a stable version).

shallow-settings - Shallow inheritance-based settings for your application

  •    Javascript

This was based off of mgutz/node-settings but implements a shallow clone over a deep clone to make output more predictable. Additionally, it features lazy loading for instantiaion inside of your configuration itself. shallow-settings defines Settings as its module.exports.

bebusy - :hatched_chick: fakes devs' work by printing random messages to Terminal

  •    Javascript

“OMG your bebusy lib is awesome, I'll install it at work tomorrow so that I can work on my presentation for Thursday” — Olivier X.

lazy-cache - Cache requires to be lazy-loaded when needed

  •    Javascript

Cache requires to be lazy-loaded when needed. It's suprising how many libraries are in the average dependency tree that don't belong there for one reason or another. Either because they were accidentally listed as dependencies instead of devDepedencies, or they are required in a file as variables, but the variable is never actually used (poor linting), and so on. Or because the maintainer made the decision to add the deps, even though they will never (or can't ever) be used by 99.9% of users.

ember-img-lazy - Lazyloaded images with Ember

  •    HTML

Lazily load images once they enter your viewport. Uses IntersectionObserver, does not provide a polyfill and loads images immediately if IntersectionObserver is not available.

lazy-ass - Lazy node assertions without performance penalty

  •    TypeScript

Regular assertions evaluate all arguments and concatenate message EVERY time, even if the condition is true. Concatenates strings, stringifies objects, calls functions - only if condition is false.

react-lazy-cache - A utility to lazily calculate and cache values in a react component based on props

  •    Javascript

react-lazy-cache is a utility to lazily calculate and cache values in a React component based on props. Ideally, in a React component, you would calculate values that depend on your props inputs every time the component is rendered. However, in practice, sometimes these values, either for computational or memory reasons, are better off cached. When you cache them, however, you need to be constantly watching your props to know if you need to invalidate your cache and recalculate those values. That is what react-lazy-cache does for you.