
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
parse-semver
Advanced tools
Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
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
var parseSemver = require('parse-semver')
parseSemver('docks@~3.4.5')
//=> {name: 'docks', original: '~3.4.5', range: '>=3.4.5 <3.5.0', version: '3.4.5'}
parseSemver('docks@v1.2.3')
//=> {name: 'docks', original: 'v1.2.3', range: '1.2.3', version: '1.2.3'}
parseSemver('docks@^2.2.2')
//=> {name: 'docks', original: '^2.2.2', range: '>=2.2.2 <3.0.0', version: '2.2.2'}
parseSemver('docks')
//=> {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.
1.1.1 / 2016-02-23
^5.1.0
@user/package@~2.2.5
(PR #2)FAQs
Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.
The npm package parse-semver receives a total of 271,006 weekly downloads. As such, parse-semver popularity was classified as popular.
We found that parse-semver demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.