github-from-package

WebJar for github-from-package

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-from-package
Last Version

Last Version

0.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

github-from-package
WebJar for github-from-package
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/substack/github-from-package

Download github-from-package

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-from-package/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-from-package</artifactId>
    <version>0.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-from-package/
implementation 'org.webjars.npm:github-from-package:0.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/github-from-package/
implementation ("org.webjars.npm:github-from-package:0.0.0")
'org.webjars.npm:github-from-package:jar:0.0.0'
<dependency org="org.webjars.npm" name="github-from-package" rev="0.0.0">
  <artifact name="github-from-package" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-from-package', version='0.0.0')
)
libraryDependencies += "org.webjars.npm" % "github-from-package" % "0.0.0"
[org.webjars.npm/github-from-package "0.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.0.0