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.
honkster-addressable
Advanced tools
== About
Homepage:: Addressable[http://addressable.rubyforge.org/] Authors:: Bob Aman (mailto:bob@sporkmonger.com) Copyright:: Copyright 2010 Bob Aman License:: MIT
Addressable is a replacement for the URI implementation that is part of Ruby's standard library. It more closely conforms to the relevant RFCs and adds support for IRIs and URI templates. Additionally, it provides extensive support for URI templates.
== Classes
== Example usage require "addressable/uri"
uri = Addressable::URI.parse("http://example.com/path/to/resource/") uri.scheme #=> "http" uri.host #=> "example.com" uri.path #=> "/path/to/resource/"
uri = Addressable::URI.parse("http://www.詹姆斯.com/") uri.normalize #=> #<Addressable::URI:0xc9a4c8 URI:http://www.xn--8ws00zhy3a.com/>
require "addressable/template"
template = Addressable::Template.new("http://example.com/{-list|+|query}/") template.expand({ "query" => "an example query".split(" ") }) #=> #<Addressable::URI:0xc9d95c URI:http://example.com/an+example+query/>
template = Addressable::Template.new( "http://example.com/{-join|&|one,two,three}/" ) template.partial_expand({"one" => "1", "three" => 3}).pattern #=> "http://example.com/?one=1{-prefix|&two=|two}&three=3"
template = Addressable::Template.new( "http://{host}/{-suffix|/|segments}?{-join|&|one,two,bogus}#{fragment}" ) uri = Addressable::URI.parse( "http://example.com/a/b/c/?one=1&two=2#foo" ) template.extract(uri) #=>
FAQs
Unknown package
We found that honkster-addressable 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.