
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
node-semver
Advanced tools
.. image:: https://github.com/podhmo/python-node-semver/actions/workflows/python-package.yml/badge.svg :target: https://github.com/podhmo/python-node-semver/actions/workflows/python-package.yml
python version of node-semver
.. code-block:: console
pip install node-semver
.. code-block:: python
from semver import max_satisfying
versions = ['1.2.3', '1.2.4', '1.2.5', '1.2.6', '2.0.1'] range_ = '~1.2.3' assert max_satisfying(versions, range_, loose=False) == '1.2.6'
versions = ['1.1.0', '1.2.0', '1.2.1', '1.3.0', '2.0.0b1', '2.0.0b2', '2.0.0b3', '2.0.0', '2.1.0'] range_ = '~2.0.0' assert max_satisfying(versions, range_, loose=True) == '2.0.0'
try: (max_satisfying(versions, range_, loose=False) == '2.0.0') except ValueError as e: assert e.args[0] == "Invalid Version: 2.0.0b1"
versions = ['1.2.3', '1.2.4', '1.2.5', '1.2.6-pre.1', '2.0.1'] range_ = '~1.2.3' assert max_satisfying(versions, range_, loose=False, include_prerelease=True) == '1.2.6-pre.1' assert max_satisfying(versions, range_, loose=False, include_prerelease=False) == '1.2.5'
0.9.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.1
0.5.0
0.4.2
0.4.0
0.3.0
FAQs
port of node-semver
We found that node-semver 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.