Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
The CompaniesHouse gem provides a wrapper around the Companies House API. Two methods are currently provided. One to search the Companies House database against a given string. The second to retrieve company information given a company number.
Add this line to your application's Gemfile:
gem 'companies_house_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install companies_house_api
An API key is required which can be obtained by registering with Companies House.
Configure the gem using a block in an initializer:
CompaniesHouse.configure do |config|
config.api_key = "your_api_key_here"
end
Planning ahead for future development, there are two classes, Search
and Company Information
.
To search for company information, configure as above and then instantiate a new instance of the Search
class.
ch = CompaniesHouse::Search.new
ch.search_companies("captured sparks")
This returns a plain ruby object with two attributes: a count of how many results are returned for the search and an array of those results.
To retrieve company information:
ch = CompaniesHouse::CompanyInformation.new
ch.company_profile("07577596")
ch.registered_office_address("07577596")
Again, these return plain ruby objects with attributes as shown in the API documentation for the named methods.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that companies_house_api 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.