@leeruniek/functies

0.35.0 • Public • Published

functies npm package version Coverage Status

Functional library for Javascript


Install

npm i --save-exact @leeruniek/functies

Use

import { pipe, trim, split, dropLast, push, join } from "@leeruniek/functies"

const removeTrailingSlash = source =>
  source[source.length - 1] === sep ? source.slice(0, -1) : source

const renameFile = newName => pipe(
  removeTrailingSlash,
  split(sep),
  dropLast,
  push(trim(sep)(newName)),
  join(sep)
)

Develop

git clone git@github.com:leeruniek/functies.git && \
  cd m && \
  npm run setup

# run tests (any `*.test.js`) once
npm test

# watch `src` folder for changes and run test automatically
npm run tdd

Docs

See documentation for the awesomeness that we are.

Changelog

History of all changes in CHANGELOG.md

0.34.2 - 13 Nov 2019

Deprecate several functions which have an equivalent in Ramda.

The affected functions have the same API and will continue to work for now, but will emit a debug message suggesting to use the Ramda version. The docs have also been removed for these functions, to discourage using them in new code.

Deprecate

  • all, clone, curry, deep-equal, distinct, endsWith, fromEntries, filter, find, flattenOne, flatten, flipUncurried, forEach, get, gt, hasKey, head, i, ifThen, last, partition, pick, pickKeys, pipe, pluck, prop, sort, split, tail, toLower, type, zip, zipWith

Readme

Keywords

none

Package Sidebar

Install

npm i @leeruniek/functies

Weekly Downloads

39

Version

0.35.0

License

MIT

Unpacked Size

3.77 MB

Total Files

365

Last publish

Collaborators

  • igpejic
  • tomasleeruniek
  • whois42