Get unlimited public & private packages + team-based management with npm Teams.Learn more »

ramdu

0.0.12 • Public • Published

Ramdu

Small utils set built around Ramda

Last Commit Travis npm package Coveralls

Getting started

Ramdu has some goals:

  • To be lightweight
  • To use only pure functions with a general purpose
  • To export currified versions of all functions
  • To look like original Ramda as much as possible

Documentation

Quick start

yarn add ramdu
# or 
npm install ramdu

es6

import * as RU from 'ramdu';
import { alwaysArray } from 'ramdu';
import alwaysArray from 'ramdu/alwaysArray';

node

const RU = require('ramdu');

What does include?

String functions

camelCase, Capitalize, deburr, ellipsize…, pascal-case, snake_case, UPPER_SNAKE_CASE, pad, padStart, padEnd, words

Keys transformation functions

renameKeys, evolveKeys, mapKeys

"is" functions

isNot, isNotEmpty, isNotNil, isEven, isOdd, isFalsy, isTruthy, isBetween, isNotBetween, propIsFalsy, propIsTruthy

Indexed functions

mapIndexed, filterIndexed, reduceIndexed

Path as dotted string functions

strAssocPath, strDissocPath, strHasPath, strLensPath, strNotHasPath, strPath, strPathEq, strPathNotEq, strPathNotSatisfies, strPathOr, strPathSatisfies

"defaultTo" functions

defaultToArray, defaultToFalse, defaultToObject, defaultToString, defaultToTrue, defaultToZero

"always" functions

alwaysArray, alwaysObject, alwaysString, alwaysZero

Argument functions

list, whenArgs, withEvolvedArgs

...and much more

Ramdu - Small utils set built around Ramda

Install

npm i ramdu

DownloadsWeekly Downloads

9

Version

0.0.12

License

MIT

Unpacked Size

2.66 MB

Total Files

281

Last publish

Collaborators

  • avatar