Files
bruno 803cf51cea 🐳 优化Docker部署流程,支持3001端口和registry:5003
- 修复Dockerfile构建问题,暂时禁用ideal-image插件
- 更新所有配置文件中的registry端口为5003
- 添加.dockerignore文件优化构建性能
- 创建docker-compose.yml文件支持本地部署
- 添加部署脚本scripts/deploy-docker.sh
- 更新Gitea Actions工作流,添加Docker部署步骤
- 创建DOCKER_DEPLOYMENT.md部署文档
- 支持通过3001端口提供lingjingwanxiang web portal服务
2025-07-21 21:51:15 +08:00
..

github-from-package

return the github url from a package.json file

build status

example

For the ./package.json file:

{
  "name": "beep-boop",
  "version": "1.2.3",
  "repository" : {
    "type" : "git",
    "url": "[email protected]:substack/beep-boop.git"
  }
}
var github = require('github-from-package');
var url = github(require('./package.json'));
console.log(url);
https://github.com/substack/beep-boop

methods

var github = require('github-from-package')

var url = github(pkg)

Return the most likely github url from the package.json contents pkg. If no github url can be determined, return undefined.

install

With npm do:

npm install github-from-package

license

MIT