UNPKG

dont-break

Version:

Checks if the current version of your package would break dependent projects

12 lines (8 loc) 205 B
var is = require('check-more-types') function isGitHub (s) { return s.indexOf('github') !== -1 } function isRepoUrl (s) { return (is.git(s) || is.url(s)) && isGitHub(s) } module.exports = isRepoUrl