
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
hx-transform
Advanced tools
HTMX extension for transforming JSON responses before swapping content. This is a dependency free alternative to the [client side templates extension](https://htmx.org/extensions/client-side-templates/).
HTMX extension for transforming JSON responses before swapping content. This is a dependency free alternative to the client side templates extension.
To install via CDN:
<script src="https://cdn.jsdelivr.net/npm/hx-transform/index.js" defer></script>
or via npm if you prefer:
npm i @rohenaz/htmx-filter
Then add the following to your HTML:
<script src="/path/to/htmx.js"></script>
<script src="/node_modules/hx-transform/index.js"></script>
Lets say we have an endpoint that returns JSON like this:
{
"success": true,
"message": "Profile saved successfully"
}
<div id="save-profile-status" hx-ext="remove-me" class="flex mb-2"></div>
<button
type="submit"
class="btn btn-primary bg-primary text-primary-content"
hx-post="/profile"
hx-target="#save-profile-status"
hx-ext="transform-response"
hx-transform="(response) => response.success ? <div remove-me='3s'>success</div> : error"
>
Save
</button>
FAQs
HTMX extension for transforming JSON responses before swapping content. This is a dependency free alternative to the [client side templates extension](https://htmx.org/extensions/client-side-templates/).
The npm package hx-transform receives a total of 0 weekly downloads. As such, hx-transform popularity was classified as not popular.
We found that hx-transform 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.