node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

ramda-destruct

ramda-destruct npm version Build Status

demo

  • Cleans up required or imported Ramda functions when using destructing assignment.
  • Reads functions from local Ramda instance based on the current working directory.

install

npm install -g ramda-destruct

usage

Prints the modified file contents to stdout.

file as argument

ramda-destruct path/to/file.js

stdin

cat path/to/file.js | ramda-destruct

vim

%!ramda-destruct

Or use Preserve function that restores cursor position after:

:call Preserve("%!ramda-destruct")