chore: add pkg dependencies

This commit is contained in:
Rim
2025-04-01 23:48:10 -04:00
parent e32a4c6abc
commit 86f0782a98
1210 changed files with 125948 additions and 3593 deletions

View File

@ -0,0 +1,8 @@
{
"name": "beep-boop",
"version": "1.2.3",
"repository" : {
"type" : "git",
"url": "git@github.com:substack/beep-boop.git"
}
}

3
node_modules/github-from-package/example/url.js generated vendored Normal file
View File

@ -0,0 +1,3 @@
var github = require('../');
var url = github(require('./package.json'));
console.log(url);

17
node_modules/github-from-package/index.js generated vendored Normal file
View File

@ -0,0 +1,17 @@
module.exports = function (pkg) {
var m;
if (m = match(JSON.stringify(pkg.repository))) {
return m;
}
else if (m = match(JSON.stringify(pkg))) {
return m;
}
return undefined;
};
function match (str) {
var m = /\bgithub.com[:\/]([^\/"]+)\/([^\/"]+)/.exec(str);
if (m) {
return 'https://github.com/' + m[1] + '/' + m[2].replace(/\.git$/, '');
}
}

30
node_modules/github-from-package/package.json generated vendored Normal file
View File

@ -0,0 +1,30 @@
{
"name" : "github-from-package",
"version" : "0.0.0",
"description" : "return the github url from a package.json file",
"main" : "index.js",
"devDependencies" : {
"tap" : "~0.3.0",
"tape" : "~0.1.5"
},
"scripts" : {
"test" : "tap test/*.js"
},
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/github-from-package.git"
},
"homepage" : "https://github.com/substack/github-from-package",
"keywords" : [
"github",
"package.json",
"npm",
"repository"
],
"author" : {
"name" : "James Halliday",
"email" : "mail@substack.net",
"url" : "http://substack.net"
},
"license" : "MIT"
}