0.16.0 • Published 3 years ago

funk-lib v0.16.0

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

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>

commanddescription
buildTranspile source
coverRun test coverage
initRe/Install deps
init:hardinit with a fresh package-lock
docsParse docs to JSON
lintLint the source
testRun tests
test:watchRun tests on change
verifyVerify linting, tests, coverage
0.16.0

3 years ago

0.15.1

4 years ago

0.15.2

4 years ago

0.15.0

5 years ago

0.14.2

5 years ago

0.14.1

5 years ago

0.14.0

5 years ago