Skip to main content

ensure-node

ensure-node 是一个轻量 Python 工具库,用来确保指定版本的 Node.js 发行包就绪。

from ensure_node import ensure_node
import subprocess
# 安装指定版本的 Node.js
npx, node, npm = ensure_node("https://nodejs.org/dist/latest/node-v25.8.2-win-x64.zip")
# 使用相关工具
completed_process = subprocess.run([
    str(npx),
    "--version"
], capture_output=True)
print(completed_process.stdout.decode())

目前仅在 Windows 平台上测试过,可能支持 Linux 平台,不支持 MacOS 平台。

只支持 .zip / .tar.gz / .tar.xz 格式的文件。

Metadata

Release files for ensure-node 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ensure-node 0.0.0
File Size Uploaded Provenance Actions
ensure_node-0.0.0.tar.gz 2.1 kB Without provenance Details for ensure_node-0.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ensure-node 0.0.0
File Interpreter ABI Platform Actions
ensure_node-0.0.0-py3-none-any.whl Python 3 none any Details for ensure_node-0.0.0-py3-none-any.whl

Total release size: 5.3 kB

Release files / ensure_node-0.0.0.tar.gz

Download URL ensure_node-0.0.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
942116bfdb7fc0e5c8e410e740f3cc66eb7491554940e599e145f27769232dde
BLAKE2b-256 checksum
How to use checksums
373873737abb3f15ca62a94b30c9dc73b6bd6e26aaf9ab0ee6a69542a89582f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ensure_node-0.0.0-py3-none-any.whl

Download URL ensure_node-0.0.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f46745807301c5ff72c2e7fbc3b84dbae587fd82afce748140628a58050b87e6
BLAKE2b-256 checksum
How to use checksums
41c9a48f06747e8ff5ab7505b0fc3fcce602ef6594fd46548adbd1b546271de1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ensure-node 0.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page