Skip to content

lrangell/immutable-to-ramda

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published