Skip to content
Small utils set built around Ramda
JavaScript
Branch: master
Clone or download
Latest commit 404d13b Nov 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
docs
jsdoc-template @ ec0e3c0
src
.babelrc
.editorconfig
.eslintrc
.gitignore
.gitmodules
.jsdoc.json
.prettierrc
.travis.yml
CODE_OF_CONDUCT.md
LICENSE
README.md
package.json
ramdu.svg
rollup.config.js
serve.json
yarn.lock

README.md

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

You can’t perform that action at this time.