Security News
PyPI Slashes Malware Response Time: 90% of Issues Resolved in Under 24 Hours
PyPI has drastically improved its malware response times, resolving 90% of issues in under 24 hours and removing 900 projects since March 2024.
parse-repo
Advanced tools
Readme
Extract repository information from a git remote URI.
npm install parse-repo
var parseRepo = require('parse-repo');
// parsing a GitHub https remote
parseRepo('https://github.com/npm/docs.git');
/*
{ remote: 'https://github.com/npm/docs.git',
protocol: 'https',
host: 'github.com',
repository: 'npm/docs',
owner: 'npm',
project: 'docs' }
*/
// slightly different bitbucket URI
parseRepo('https://user@bitbucket.org/owner/org');
/*
{ remote: 'https://user@bitbucket.org/owner/org',
protocol: 'https',
host: 'bitbucket.org',
repository: 'owner/org',
owner: 'owner',
project: 'org' }
*/
// git remotes are also supported
parseRepo('git@gitlab.com:gitlab-org/gitlab-ce.git');
/*
{ remote: 'git@gitlab.com:gitlab-org/gitlab-ce.git',
protocol: 'git',
host: 'gitlab.com',
repository: 'gitlab-org/gitlab-ce',
owner: 'gitlab-org',
project: 'gitlab-ce' }
*/
// a local remote, without owner information
parseRepo('/local/path/repo-name');
/*
{ remote: '/local/path/repo-name',
protocol: 'file',
host: 'localhost',
repository: 'repo-name',
owner: null,
project: 'repo-name' }
*/
MIT license - http://www.opensource.org/licenses/mit-license.php
FAQs
Extract repository info from a git remote URI
We found that parse-repo 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.
Security News
PyPI has drastically improved its malware response times, resolving 90% of issues in under 24 hours and removing 900 projects since March 2024.
Security News
Research
The Socket Research team breaks down an obfuscated script designed to facilitate unauthorized file uploads to multiple external services.
Security News
Node.js has automated its security release process, doubling the number of releases, and is re-evaluating unsupported experimental features with the Next 10 group to enhance security.