# get-package-json-from-github

> Get package.json from github

Latest version **1.2.1** (published 2016-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-package-json-from-github
pnpm add get-package-json-from-github
yarn add get-package-json-from-github
bun add get-package-json-from-github
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2016-07-14 |
| First published | 2016-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | David Björklund |
| Maintainers | kesla |

## Links

- npm: https://www.npmjs.com/package/get-package-json-from-github
- Repository: https://github.com/kesla/get-package-json-from-github
- Homepage: https://github.com/kesla/get-package-json-from-github#readme
- Issues: https://github.com/kesla/get-package-json-from-github/issues
- npm.io page: https://npm.io/package/get-package-json-from-github

## Dependencies (4)

- [gh-got](https://npm.io/package/gh-got.md) ^4.0.0
- [npm-package-arg](https://npm.io/package/npm-package-arg.md) ^4.2.0
- [async-cache-promise](https://npm.io/package/async-cache-promise.md) ^2.0.2
- [immutable-object-methods](https://npm.io/package/immutable-object-methods.md) ^1.2.1

## Recent versions

- 1.2.1 (latest) — 2016-07-14
- 1.2.0 — 2016-07-13
- 1.1.0 — 2016-07-10
- 1.0.0 — 2016-07-10

## README

# get-package-json-from-github 

Get package.json from github

## Installation

Download node at [nodejs.org](http://nodejs.org) and install it, if you haven't already.

```sh
npm install get-package-json-from-github --save
```

## Usage

```js
import getPackageJsonFromGithub from 'get-package-json-from-github';

getPackageJsonFromGithub('git+https://github.com/kesla/get-package-json-from-github.git')
  .then(packageJson => {
    console.log('packageJson', packageJson);
  });

// can also load a caching version

const cached = getPackageJsonFromGithub.cached();

cached('git+https://github.com/kesla/get-package-json-from-github.git')
  .then(packageJson => {
    console.log('packageJson', packageJson);
  });

```

## Tests

```sh
npm install
npm test
```

## Dependencies

- [async-cache-promise](https://github.com/kesla/async-cache-promise): async-cache - but with promises
- [gh-got](https://github.com/sindresorhus/gh-got): Convenience wrapper for `got` to interact with the GitHub API
- [immutable-object-methods](https://github.com/micnews/immutable-object-methods): Update normal plain javascript object, immutable style. Simlar to how immutable.js, seamless-immutable etc does it but a lot smaller and simpler.
- [npm-package-arg](https://github.com/npm/npm-package-arg): Parse the things that can be arguments to `npm install`

## Dev Dependencies

- [babel-cli](https://github.com/babel/babel/tree/master/packages): Babel command line.
- [babel-core](https://github.com/babel/babel/tree/master/packages): Babel compiler core.
- [babel-preset-es2015](https://github.com/babel/babel/tree/master/packages): Babel preset for all es2015 plugins.
- [babel-preset-es2015-node4](https://github.com/jbach/babel-preset-es2015-node4): Babel preset to make node@4 ES2015 compatible.
- [babel-tape-runner](https://github.com/wavded/babel-tape-runner): Babel + Tape for running your ES Next tests
- [package-json-to-readme](https://github.com/zeke/package-json-to-readme): Generate a README.md from package.json contents
- [semistandard](https://github.com/Flet/semistandard): All the goodness of `feross/standard` with semicolons sprinkled on top.
- [snazzy](https://github.com/feross/snazzy): Format JavaScript Standard Style as Stylish (i.e. snazzy) output
- [tapava](https://github.com/kesla/tapava): the syntax of ava, run through tape


## License

MIT

_Generated by [package-json-to-readme](https://github.com/zeke/package-json-to-readme)_

---
_Source: https://npm.io/package/get-package-json-from-github · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
