Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 877 Bytes

README.md

File metadata and controls

49 lines (39 loc) · 877 Bytes

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