Skip to content

NPM package to clean up required or imported sanctuary functions

Notifications You must be signed in to change notification settings

bijoythomas/sanctuary-destruct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sanctuary-destruct

npm Build Status

demo

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

install

npm install -g sanctuary-destruct

usage

Prints the modified file contents to stdout.

file as argument

sanctuary-destruct path/to/file.js

stdin

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

vim

%!sanctuary-destruct

Or use Preserve function that restores cursor position after:

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

Sublime Text

Install the FilterPipes plugin and add a key binding like

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

Acknowledgements

Big thanks to Raine Virta whose ramda-destruct package was the inspiration for this.

About

NPM package to clean up required or imported sanctuary functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published