A codemode to replace some of the Immutable.js methods to ramda's equivalent (or ES6 when possible) but maintaining the same semantics.
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