You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
I was recently doing a lot of work in REPL and I found myself
constantly needing to copy/paste various bits of input/output from my
text editor to the REPL and vise versa. Using the mouse got pretty
tedious, so I created a quick module called node-copy-paste that wraps
pbpaste/pbcopy (as well as xclip [linux] and clip [windows]):
A few points of constructive criticism: * Putting "node-" in the package name is generally bad practice. As a GitHub repo name it's fine, but in package.json it should be just "copy-paste" * Exposing global functions is not great either. Why not just export the `copy` and `paste` methods from your package's main module?
Xavi Ramirez
unread,
Aug 25, 2012, 12:08:30 PM8/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
Good first point, I'll make the change.
As for the second point, I expose `copy` and `paste` globally for the
sake of connivence. When I'm in the REPL, I simply what to type
`require("copy-paste)` and be done with it. Connivence is also why
`paste` synchronously returns a value instead of using a callback.