Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@hellhub-collective/sdk
Advanced tools
Readme
Written 100% in TypeScript, Filter and collect data with full type safety out of the box. Make your life easier and try it today!
The HellHub SDK is a TypeScript library that provides a simple and easy-to-use interface for interacting with the HellHub API. It is designed to make it easy for developers to filter and collect data with full type safety out of the box.
To install the HellHub SDK, you can use npm, yarn or bun. For simplicity, we will use bun in this example:
bun add @hellhub-collective/sdk
To use the HellHub SDK, you will need to import the HellHub
class from the @hellhub-collective/sdk
package.
import HellHub from "@hellhub-collective/sdk";
You can then use the HellHub
class to interact with the HellHub API. For example, you can use the planets
method to retrieve a single or a list of planets:
// get the planet with id 1
const response = await HellHub.planets(1);
// get a list of all planets
const response = await HellHub.planets();
// get a list of planets with a filter and limit
const response = await HellHub.planets({
limit: 15,
filters: { name: { $contains: "Earth" } },
});
The HellHub SDK also supports more complex endpoints that require additional parameters. You can also use the request
method if you need more control over the request:
import HellHub, { type Planet } from "@hellhub-collective/sdk";
const response = await HellHub.request<Planet[]>("/sectors/1/planets", {
query: {
limit: 15,
filters: { name: { $contains: "Earth" } },
},
});
If you are using a self-hosted version of the HellHub API, you can specify the HELLHUB_API_URL
environment variable to point to your API endpoint. Note that the value will need to include the /api
path.
export HELLHUB_API_URL="https://my-hellhub-api.com/api"
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
The official SDK for HellHub API. Filter and collect data with full type safety out of the box.
The npm package @hellhub-collective/sdk receives a total of 108 weekly downloads. As such, @hellhub-collective/sdk popularity was classified as not popular.
We found that @hellhub-collective/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.