Displaying 1 to 20 from 29 results

unirest-nodejs - Unirest in Node.js: Simplified, lightweight HTTP client library.

  •    Javascript

Unirest is a set of lightweight HTTP libraries available in multiple languages, built and maintained by Mashape, who also maintain the open-source API Gateway Kong. A request can be initiated by invoking the appropriate method on the unirest object, then calling .end() to send the request. Alternatively you can send the request directly by providing a callback along with the url.

trainwreck.js - JavaScript method chaining made easy

  •    Javascript

Nothing groundbreaking about this library. I've done the same thing a couple times before and I'm sure a lot of people have done it as well, sharing it just because it can be useful and because I couldn't find a library which the only purpose was to provide chaining.The name is a homage to Robert C. Martin book Clean Code. The author uses the term on the Chapter 6 (Objects and Data Structure) to name a sample code that appears to violate the Law of Demeter. According to the author "it look like a bunch of coupled train cars." and it is "generally considered to be sloppy style and should be avoided".




async-class - Cleaner ES6 async class methods

  •    Javascript

Cleaner ES6 async class methods for Node 4.0.0+. A solution to using promises and coroutines with classes without the overhead of babel, or the need to adopt unimplemented syntax and features, until v8/node supports ES7 async/await.Wraps static and instance methods whose name ends with Async, or are GeneratorFunctions. Any GeneratorFunction is wrapped with bluebird.coroutine(), and others with bluebird.method(). Accepts an optional array of method names, wrapping only those found in the array, and disabling the Async suffix check. Returns the class.

bind-methods - Bind all methods in an object to itself or a specified context

  •    Javascript

Bind methods in input to itself or context if specified. Returns the input object.Object with methods to bind.

auto-bind - Automatically bind methods to their class instance

  •    Javascript

Bind methods in self to their class instance. Returns the self object.Object with methods to bind.


magic-iterable - Call a method on all items in an iterable by calling it on the iterable itself

  •    Javascript

Uses the Proxy API.Returns a version of iterable that when you call a method on it, it will call that method on all items in the iterable and return an array with the result.

method - Functional polymorphic method dispatch

  •    Javascript

Library provides an API for defining polymorphic methods that dispatch on the first argument type. This provides a powerful way for decouple abstraction interface definition from an actual implementations per type / instance, without risks of interference with other libraries.

middleman

  •    Javascript

Let's say you add a third party library to your application that has a method called doSomethingCool. However, now you have to remember to call your method instead of the original method. What if ThirdPartyLibrary is very popular (e.g. jQuery)? Your colleague Tony has been using ThirdPartyLibrary for years. He doesn't remember to use your wrapper function when writing new code for your application.

es6-mixins - An easy way to add mixin methods and functions to your es6 classes and react components

  •    Javascript

An easy way to add mixin methods and functions to your es6 classes and react components. Only the first 2 arguments are required.

map-visit - Map `visit` over an array of objects.

  •    Javascript

Map visit over an array of objects. The above approach works fine for most use cases. But if you also want to emit an event each time a property is added to the data object. A better approach would be to use visit.

object-visit - Call the given method on each value in the given object.

  •    Javascript

Call a specified method on each value in the given object. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

collection-visit - Visit a method over the items in an object, or map visit over the objects in an array

  •    Javascript

Visit a method over the items in an object, or map visit over the objects in an array. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

conjugate-gradient - Conjugate gradient solver for JavaScript

  •    Javascript

Solves sparse symmetric positive definite linear systems. These problems arise in many physical applications, like linear elasticity, heat transfer and other diffusion based transport phenomena. This code implements the conjugate gradient method using a Jacobi preconditioner.

postcss-media-fn - Use media() to assign responsive values to a property

  •    Javascript

Media() lets you use the media() function to assign responsive values to a declaration, following the CSS Media Expressions specification.