2.0.1 • Published 7 years ago

ramda-destruct v2.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

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")

emacs

https://gist.github.com/yrns/e9b0cf1c24a87812e1ecab9816823f4c

Sublime Text

Install the FilterPipes plugin and add a key binding like

{ "keys": ["alt+shift+d"], "command": "filter_pipes_process", "args": {"command": "ramda-destruct"}}

Contributors

Big thanks to Bijoy Thomas for his contributions.

2.0.1

7 years ago

2.0.0

7 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago