Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Enables piping and redirecting into pbcopy from within Ruby.
Mac OS X only.
This lib is intended as a development aid, not a production utility.
Note that this adds String#|
On the command line you might do
$ which ruby | pbcopy
Which would copy the location of the ruby binary into your system's paste board. Later you could retrieve it with Command-V.
In Ruby you can pipe any string into pbcopy to achieve the same result
RUBY_VERSION | pbcopy
User.last.login | pbcopy
On the command line you might do
$ pbcopy < some_file
In Ruby you can do
pbcopy < 123
pbcopy < [4, 5, 6]
You can redirect any arbitrary object into pbcopy, it will be turned into a string and placed in the system clipboard
You can omit the chevron when redirecting into pbcopy
pbcopy 123
pbcopy [4, 5, 6]
$ echo 'require "pbcopy"' >> ~/.irbrc
$ echo 'require "pbcopy"' >> ~/.pryrc
Add this line to your application's Gemfile:
gem 'pbcopy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pbcopy
FAQs
Unknown package
We found that pbcopy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.