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.
Python bindings to the esbuild Transform API.
pip install esbuild_py
from esbuild_py import transform
jsx = """
import * as React from 'react'
import * as ReactDOM from 'react-dom'
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
"""
print(transform(jsx))
transform
Parameters:
jsx
(str
) - The JSX string to be transformed.Returns: str
- The transformed JS as a string.
Create conda environment
conda create -n esbuild-py python=3.11
conda activate esbuild-py
go get github.com/keller-mark/esbuild-py
# go build -buildmode=c-shared -o _esbuild.so
Build python package and install in editable mode
python setup.py bdist_wheel
python setup.py sdist
pip install -e .
Increment the version in pyproject.toml
.
The cibuildwheel GH action will build wheels for a matrix of Python versions, OS, and architectures.
Then, GH actions will publish to PyPI.
FAQs
Python bindings to the esbuild Transform API
We found that esbuild-py 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.
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.