Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

funk-lib

0.15.2 • Public • Published

funk-lib

ci npm module

FP for Vanilla JavaScript

funk-lib is a collection of functions for working with native JavaScript types in a consistent, functional way. It is heavily inspired by Ramda, but does not duplicate Ramda's functionality.

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

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

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

Install

npm i funk-lib

DownloadsWeekly Downloads

2

Version

0.15.2

License

MIT

Unpacked Size

86.1 kB

Total Files

26

Homepage

funk-lib.com

Last publish

Collaborators

  • avatar