Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
extract-github
Advanced tools
Extract a valid github URL from a given object. We make the assumption that the
given object follows a package.json
format as used by npm.
This module is released in the npm registry as extract-github
and can therefor
be installed using:
npm install --save extract-github
This module was written to only do specific task and do that task well, and that is extracting github information. We therefor export as a single function:
'use strict';
var extract = require('extract-github');
Once you've required the module you can feed it the contents of a package.json to extract to github information.
var github = extract(require('./package.json'));
The github
variable should now contain an object with a user
and repo
property which can be re-used to create a new github URL. In addition to parsing
package.json's it also supports extracting github information out of README
it
can do this by extracting Travis-CI badges or just plain ol matching github URL
from the content.
var github = extract(require('fs').readFileSync(__dirname +'/README.md'));
MIT
FAQs
Extract the Github project / repository URL from a given object
The npm package extract-github receives a total of 5,086 weekly downloads. As such, extract-github popularity was classified as popular.
We found that extract-github demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.