npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

github-page-type

v0.1.1

Published

[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]

Downloads

3

Readme

github-page-type

NPM version Build Status

Returns a page type for the given github url.

Install

$ npm install --save github-page-type

Usage

githubPageType('https://github.com/github-linker');
// => USER_ORGANIZATION_PROFILE

githubPageType('https://github.com/blog');
// => BLOG

githubPageType('https://github.com/github-linker/core');
// => REPOSITORY

githubPageType('https://github.com/blog', githubPageType.BLOG);
// => true

githubPageType('https://github.com/blog', [githubPageType.USER_ORGANIZATION_PROFILE]);
// => false

Available types

Type|Sample ---|--- HOME|https://github.com EXPLORE|https://github.com/explore NOTIFICATIONS|https://github.com/notifications SHOWCASES|https://github.com/showcases STARS|https://github.com/stars TRENDING|https://github.com/trending WATCHING|https://github.com/watching SEARCH|https://github.com/search ABOUT|https://github.com/about CONTACT|https://github.com/contact FEATURES|https://github.com/features SETTINGS_ADMIN|https://github.com/settings/admin SETTINGS_APPLICATIONS|https://github.com/settings/applications SETTINGS_BILLING|https://github.com/settings/billing SETTINGS_EMAILS|https://github.com/settings/emails SETTINGS_NOTIFICATIONS|https://github.com/settings/notifications SETTINGS_ORGANIZATIONS|https://github.com/settings/organizations SETTINGS_PROFILE|https://github.com/settings/profile SETTINGS_REPOSITORIES|https://github.com/settings/repositories SETTINGS_SECURITY|https://github.com/settings/security SETTINGS_SSH|https://github.com/settings/ssh BLOG|https://github.com/blog USER_ORGANIZATION_PROFILE|https://github.com/user REPOSITORY|https://github.com/user/repo REPOSITORY_BLOB|https://github.com/user/repo/blob/master/file REPOSITORY_TREE|https://github.com/user/repo/tree/master/folder REPOSITORY_COMMIT|https://github.com/user/repo/commit/4a30c6606465e294d1ae1c9ca394ba03368928f7 REPOSITORY_COMMITS|https://github.com/user/repo/commits/master REPOSITORY_SEARCH|https://github.com/user/repo/search REPOSITORY_ISSUES|https://github.com/user/repo/issues REPOSITORY_ISSUE|https://github.com/user/repo/issues/123 REPOSITORY_PULLS|https://github.com/user/repo/pulls REPOSITORY_PULL_CONVERSATION|https://github.com/user/repo/pull/123 REPOSITORY_PULL_COMMITS|https://github.com/user/repo/pull/123/commits REPOSITORY_PULL_FILES|https://github.com/user/repo/pull/123/files REPOSITORY_COMPARE|https://github.com/user/repo/compare/master...dev REPOSITORY_COMPARE_OVERVIEW|https://github.com/user/repo/compare

License

Copyright (c) 2015 Stefan Buck. Licensed under the MIT license.