Giter Site home page Giter Site logo

funk-lib's Introduction

funk-lib

ci npm module test coverage license: MIT

FP for Vanilla JavaScript

funk-lib is a standard library for full-stack functional programming with native JavaScript types. It is inspired by Ramda, but does not intend to duplicate Ramda's functionality. There is some overlap with core Browser and Node.js APIs, for the sake of normalization and isomorphism.

Features

Pure functions

Mostly. There are a few documented exceptions

Currying

All functions are curried, and arguments are arranged "data last" for useful partial application

Isomorphic

Packages are available for both

Vast

Includes over 300 functions for working with

  • Async (promises)
  • Iterables (sync & async)
  • Type checking
  • Arrays and objects
  • Scalars (string, number)
  • Function composition
  • URLs
  • ... and more

For a full list of functions see the Documentation For The Latest Release

Install

npm i -P funk-lib
# or: es-module compatible build
npm i -P funk-lib-es

Import

const { mapKeys } = require('funk-lib/object');
// or: es-module compatible build
import { mapKeys } from 'funk-lib-es/object';

Development

Commands

$ npm run <command>

command description
build Transpile source
cover Run test coverage
init Re/Install deps
init:hard init with a fresh package-lock
docs Parse docs to JSON
lint Lint the source
test Run tests
test:watch Run tests on change
verify Verify linting, tests, coverage

Created by Colby Dauphinais

funk-lib's People

Contributors

colbydauph avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.