Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
An awesome plugin that extends Rails FormBuilder making the boolean fields looks like an awesome animated switch. It's switchable, It's draggable, It's switchbox.
Add this line to your application's Gemfile:
gem 'switchbox'
And then execute:
$ bundle
Or install it yourself as:
$ gem install switchbox
Add this to application.js
//= require switch_rails
And add this to application.css
*= require switch_rails
Instead of:
<%= f.check_box :boolean_field %>
Use:
<%= f.switch_box :boolean_field %>
##customization
To override your switch use:
outterSwitch' class to modify the outer container
'innerSwitch class to modify the inner switch
The first div with 'content' class will be the left option, and the seccond will be the right option.
#known bugs
You cannot edit the width of the switch yet or the texts inside the 'content' divs. Ill release this fix really soon.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that switchbox 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.