All Projects → davezuko → Redash

davezuko / Redash

Tiny functional programming suite for JavaScript.

Programming Languages

javascript
184084 projects - #8 most used programming language
es2015
71 projects

Projects that are alternatives of or similar to Redash

Functionalplus
Functional Programming Library for C++. Write concise and readable C++ code.
Stars: ✭ 1,286 (+3115%)
Mutual labels:  library, composition, functional-programming
Yalinqo
Yet Another LINQ to Objects for PHP [Simplified BSD]
Stars: ✭ 400 (+900%)
Mutual labels:  library, functional-programming
Functional Javascript
Functional is a library for functional programming in JavaScript. It defines the standard higher-order functions such as map, reduce (aka foldl), and select (aka filter). It also defines functions such as curry, rcurry, and partial for partial function application; and compose, guard, and until for function-level programming.
Stars: ✭ 383 (+857.5%)
Mutual labels:  functional-programming, javascript-library
Jsstore
A complete IndexedDB wrapper with SQL like syntax.
Stars: ✭ 430 (+975%)
Mutual labels:  library, javascript-library
Scriptum
A fool's scriptum on functional programming
Stars: ✭ 346 (+765%)
Mutual labels:  composition, functional-programming
Meza
A Python toolkit for processing tabular data
Stars: ✭ 374 (+835%)
Mutual labels:  library, functional-programming
Fpo
FP library for JavaScript. Supports named-argument style methods.
Stars: ✭ 419 (+947.5%)
Mutual labels:  library, functional-programming
awesome-libraries-resources
Awesome js and css libraries for web development.
Stars: ✭ 32 (-20%)
Mutual labels:  js-library, javascript-library
Bow
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift
Stars: ✭ 538 (+1245%)
Mutual labels:  composition, functional-programming
Fkit
A functional programming toolkit for JavaScript.
Stars: ✭ 588 (+1370%)
Mutual labels:  library, functional-programming
Chakra Ui Vue
⚡️ Build scalable and accessible Vue.js applications with ease.
Stars: ✭ 993 (+2382.5%)
Mutual labels:  library, composition
Lambda Talk
A Flock of Functions: Combinators, Lambda Calculus, & Church Encodings in JS
Stars: ✭ 315 (+687.5%)
Mutual labels:  composition, functional-programming
Length.js
📏 JavaScript library for length units conversion.
Stars: ✭ 292 (+630%)
Mutual labels:  library, javascript-library
Lager
C++ library for value-oriented design using the unidirectional data-flow architecture — Redux for C++
Stars: ✭ 379 (+847.5%)
Mutual labels:  library, functional-programming
Anychart
AnyChart is a lightweight and robust JavaScript charting solution with great API and documentation. The chart types and unique features are numerous, the library works easily with any development stack.
Stars: ✭ 288 (+620%)
Mutual labels:  js-library, javascript-library
Swift Web
🕸 A collection of Swift server-side frameworks for handling HTML, CSS, routing and middleware.
Stars: ✭ 415 (+937.5%)
Mutual labels:  composition, functional-programming
Psd Guides
📐 JS library to draw photoshop-like guides.
Stars: ✭ 22 (-45%)
Mutual labels:  js-library, javascript-library
FilterInputJs
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
Stars: ✭ 37 (-7.5%)
Mutual labels:  js-library, javascript-library
v-bucket
📦 Fast, Simple, and Lightweight State Manager for Vue 3.0 built with composition API, inspired by Vuex.
Stars: ✭ 42 (+5%)
Mutual labels:  composition, javascript-library
Fasy
FP iterators that are both eager and asynchronous
Stars: ✭ 488 (+1120%)
Mutual labels:  library, functional-programming

Redash

Build Status dependencies Status

Check out the API docs!

The missing standard library for JavaScript. This lightweight library is meant to fill the gap between Ramda (functional) and Lodash (performance) while providing you with the tools you need to write sane JavaScript. This means that all functions treat data as immutable structures, compare objects by value instead of by reference, and offer the right mix of flexibility and composability.

  1. Why
  2. Usage
  3. Comparisons

Why?

First Class Functional Programming

Redash is designed to encourage functional programming styles without sacrificing the utility you're used to. What sets it apart is that, unlike some other libraries that simply offer FP-ish wrappers, functional programming is a first class citizen in Redash. Here's what that means for you:

  • Immutability — Redash will never mutate your data; objects are always shallowly copied.
  • Equality — Objects are compared by value, not reference. Work with data in a meaningful way without concerning yourself with how it's stored in memory.
  • Flexibility — Functional programming patterns don't always translate well to idiomatic JavaScript, so Redash takes the approach of pursuing functional programming patterns insofar as it produces understandable and idiomatic JavaScript. This means Redash sacrifices auto-curry and non-variadic functions for larger benefits such as performance, ES2015+ interop, and general utility.
  • Size — Redash comes in at just 12.6kb before gzip. Combine this with its use ES2015 modules and Rollup for module flattening, and you can rest easy when adding it to your project.
  • Simplicity — Redash strives to be as simple as possible despite its flexible API; it trades magic for explicitness, even at the cost of a few characters. For example, Lodash's get('foo.bar.baz') becomes getIn(['foo', 'bar', 'baz']), which is closer to Ramda's path(['foo', 'bar', 'baz']). This helps to eliminate confusion for less common cases that are nevertheless valid.

Built for the Next Generation of JavaScript

The Redash codebase is written with ES2015 modules and packaged with rollup so you to take advantage of tree shaking without the need for extra tooling. Redash also offers complete typings for TypeScript users so that you can work with its API with complete confidence.

Usage

# Yarn (Recommended)
yarn add redash

# NPM (Alternative)
npm install --save redash

After that's done, just import it in your code and get on to building awesome stuff. If you haven't already done so, you should check out the API documentation to see what functions are available and learn how to use them. Here are a few of the most common ways to use Redash:

ES2015 Module

import * as _ from 'redash'       // import everything
import { map, get } from 'redash' // or just what you need

CommonJS

const _ = require('redash')            // import everything
const { map, get } = require('redash') // or just what you need

Installer

If you have full control over your codebase and don't want to continually import/prefix all of the functions, you can install the library to a context.

import install from 'redash/installer'

install(global)

// Now all of the functions are available on the scope you installed it to:
get('name', { name: 'Michael' }) // => 'Michael'

Comparisons

Category Redash Ramda Lodash Lodash/FP
Minified (kb) 12.6 44.7 71.4 71.4
100% Immutable Yes Yes No Yes
Auto-Curry No Yes No Yes
Object Equality Value Value Reference Reference
IE 9+ Yes Yes Yes Yes
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].