Gathering detailed insights and metrics for parse-semver
Gathering detailed insights and metrics for parse-semver
Gathering detailed insights and metrics for parse-semver
Gathering detailed insights and metrics for parse-semver
semver-utils
Tools for manipulating semver strings and objects
@suchipi/femver
Lightweight alternative to semver, supporting absolute versions only
semver-parser
SemVer parser. parse, verify, compare SemVer.
@lazy-node/semver-simple-parse
Tools for manipulating semver strings and objects
Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.
npm install parse-semver
Typescript
Module System
Node Version
NPM Version
99.7
Supply Chain
99.5
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
27,363,198
Last Day
16,443
Last Week
273,277
Last Month
1,293,073
Last Year
9,878,471
MIT License
2 Stars
17 Commits
1 Forks
2 Watchers
1 Branches
2 Contributors
Updated on Jul 16, 2019
Minified
Minified + Gzipped
Latest Version
1.1.1
Package Id
parse-semver@1.1.1
Size
5.19 kB
NPM Version
3.7.1
Node Version
5.6.0
Published on
Feb 23, 2016
Cumulative downloads
Total Downloads
Last Day
-7.7%
16,443
Compared to previous day
Last Week
-19.6%
273,277
Compared to previous week
Last Month
4.1%
1,293,073
Compared to previous month
Last Year
58.8%
9,878,471
Compared to previous year
Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.
npm i parse-semver --save
npm test
For more use-cases see the tests
It returns object with
original
version given, expanded semverrange
, andversion
which is valid semver version.
<shorthand>
{String} the shorthand to parse, like docks@v2.2.0
return
{Object} object with few propertiesExample
1var parseSemver = require('parse-semver') 2 3parseSemver('docks@~3.4.5') 4//=> {name: 'docks', original: '~3.4.5', range: '>=3.4.5 <3.5.0', version: '3.4.5'} 5 6parseSemver('docks@v1.2.3') 7//=> {name: 'docks', original: 'v1.2.3', range: '1.2.3', version: '1.2.3'} 8 9parseSemver('docks@^2.2.2') 10//=> {name: 'docks', original: '^2.2.2', range: '>=2.2.2 <3.0.0', version: '2.2.2'} 11 12parseSemver('docks') 13//=> {name: 'docks', original: '', range: '*', version: 'latest'}
git log
style to array of objects from git repository… more.git/config
into a JavaScript object. sync or async.ware
, plugins
, koa-compose
and… morePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.
No vulnerabilities found.
Reason
no vulnerabilities detected
Reason
all dependencies are pinned
Details
Reason
tokens are read-only in GitHub workflows
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
0 commit(s) out of 17 and 0 issue activity out of 2 found in the last 90 days -- score normalized to 0
Reason
no reviews found
Details
Reason
no badge detected
Reason
branch protection not enabled on development/release branches
Details
Reason
no update tool detected
Details
Reason
project is not fuzzed
Score
Last Scanned on 2022-08-15
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More