New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github-url-detection

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-url-detection

Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
409
increased by36.33%
Maintainers
1
Weekly downloads
 
Created
Source

github-url-detection

Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.

Install

npm install github-url-detection
import * as pageDetect from 'github-url-detection';
const pageDetect = require('github-url-detection');

Usage

if (pageDetect.isRepo()) {
	alert('You’re looking at a repo!')
}


if (pageDetect.isDiscussionList()) {
	alert('You’re looking at a issues and PRs list!')
}

In the source you can see the full list of detections and their matching URLs.

License

MIT © Federico Brigante

Keywords

FAQs

Package last updated on 06 May 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc