node-semver
node-semver copied to clipboard
The semver parser for node (the one npm uses)
https://github.com/github/docs/blob/main/articles/configuring-git-large-file-storage
OK, first allow me to lay out the scenario: We are using a JS app to parse PHP `composer.json` files and wish to use this library to compare a version...
When processing version requests I have a case where we're manually checking to see if the version string includes a wildcard character and branching to a different flow. Would it...
€э€э
# What / Why I'm trying to extract a version from string keeping prerelease tags but it's not considering it. ## How ### Current Behavior For example, running this code...
# What / Why `semver.intersects('>=16.0.0 =16.0.0 =16.0.0 =16.0.0
Not pressing or urgent, but mostly for API symmetry, it'd be nice to have truncate/decrement functions. 1. `semver.truncate('1.2.3-foo', 'patch') == '1.2.3'` 2. `semver.truncate('1.2.3', 'minor') == '1.2.0'` 3. `semver.truncate('1.2.3', 'major') ==...
I tried this: ``` > s = require('semver') > v='0.0.0' '0.0.0' > v = s.inc(v, 'premajor') '1.0.0-0' > v = s.inc(v, 'premajor') '2.0.0-0' > v = s.inc(v, 'premajor') '3.0.0-0' >...
Is there a way to find out if a version is a pre-release version through the semver CLI? If so, is it possible to get the pre-release identifier from a...
Hello, As stated in the documentation: > The method .inc takes an additional identifier string argument that will append the value of the string as a prerelease identifier: `semver.inc('1.2.3', 'prerelease',...