0.1.1 • Published 9 years ago
github-page-type v0.1.1
github-page-type
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
License
Copyright (c) 2015 Stefan Buck. Licensed under the MIT license.