0.14.0 • Published 1 year ago

immutable-to-ramda v0.14.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

immutable-to-ramda

A codemode to replace some of the Immutable.js methods to ramda's equivalent (or ES6 when possible) but maintaining the same semantics.

Usage

npx immutable-to-ramda *files*

will do the transformations in place.

you can also pass the --dry flag to preview the transformations.

npx immutable-to-ramda --dry *files*

Examples of transformations can be seen in the examples folder or the test files.

currently supported Immutable.js functions:

  • filterNot
  • zip
  • updateIn
  • groupBy
  • update
  • findLast
  • delete
  • deleteIn
  • valueSeq
  • keySeq
  • flatten
  • isEmpty
  • flip
  • getIn
  • get
  • set
  • setIn
  • sortBy
  • fromJS
  • toJS
  • fromArray
  • List
  • Map