2016-06-09 21:46:28 +00:00
|
|
|
# projectinfo
|
2018-09-02 12:21:05 +00:00
|
|
|
|
2016-11-26 23:09:04 +00:00
|
|
|
gather information about projects. supports npm, git etc.
|
2016-06-09 21:46:28 +00:00
|
|
|
|
2016-11-26 23:09:04 +00:00
|
|
|
## Availabililty
|
2018-09-02 12:21:05 +00:00
|
|
|
|
2017-02-27 21:46:12 +00:00
|
|
|
[![npm](https://pushrocks.gitlab.io/assets/repo-button-npm.svg)](https://www.npmjs.com/package/projectinfo)
|
|
|
|
[![git](https://pushrocks.gitlab.io/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/projectinfo)
|
|
|
|
[![git](https://pushrocks.gitlab.io/assets/repo-button-mirror.svg)](https://github.com/pushrocks/projectinfo)
|
|
|
|
[![docs](https://pushrocks.gitlab.io/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/projectinfo/)
|
2016-11-26 23:09:04 +00:00
|
|
|
|
|
|
|
## Status for master
|
2018-09-02 12:21:05 +00:00
|
|
|
|
2016-11-26 23:09:04 +00:00
|
|
|
[![build status](https://GitLab.com/pushrocks/projectinfo/badges/master/build.svg)](https://GitLab.com/pushrocks/projectinfo/commits/master)
|
|
|
|
[![coverage report](https://GitLab.com/pushrocks/projectinfo/badges/master/coverage.svg)](https://GitLab.com/pushrocks/projectinfo/commits/master)
|
|
|
|
[![npm downloads per month](https://img.shields.io/npm/dm/projectinfo.svg)](https://www.npmjs.com/package/projectinfo)
|
2016-06-09 21:46:28 +00:00
|
|
|
[![Dependency Status](https://david-dm.org/pushrocks/projectinfo.svg)](https://david-dm.org/pushrocks/projectinfo)
|
2016-11-26 23:09:04 +00:00
|
|
|
[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/projectinfo/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/projectinfo/master/dependencies/npm)
|
|
|
|
[![bitHound Code](https://www.bithound.io/github/pushrocks/projectinfo/badges/code.svg)](https://www.bithound.io/github/pushrocks/projectinfo)
|
|
|
|
[![TypeScript](https://img.shields.io/badge/TypeScript-2.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
|
|
|
[![node](https://img.shields.io/badge/node->=%206.x.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
|
|
|
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
|
2016-06-09 21:46:28 +00:00
|
|
|
|
|
|
|
## Usage
|
2018-09-02 12:21:05 +00:00
|
|
|
|
2016-11-26 23:09:04 +00:00
|
|
|
Use TypeScript for best in class instellisense.
|
|
|
|
|
|
|
|
```javascript
|
2018-09-02 12:21:05 +00:00
|
|
|
import { ProjectInfo } from 'projectinfo';
|
2016-11-26 23:09:04 +00:00
|
|
|
|
2018-09-02 12:21:05 +00:00
|
|
|
let myProjectInfo = new ProjectInfo('/some/path/to/proejct');
|
|
|
|
let npmName = myProjectInfo.npm.name; // returns npm name from package.json
|
|
|
|
let npmVersion = myProjectInfo.npm.version; // returns version from package.json
|
|
|
|
let gitRepo = myProjectInfo.git.gitrepo; // returns the name of the gitrepo
|
|
|
|
let gitRemotes = myProjectInfo.git.remotes; // returns array with registered remotes
|
2016-06-09 21:46:28 +00:00
|
|
|
|
2016-11-26 23:09:04 +00:00
|
|
|
// for more info check out the module in your IDE with TypeScript intellisense enabled
|
|
|
|
```
|
2016-06-09 21:46:28 +00:00
|
|
|
|
2017-02-27 21:46:12 +00:00
|
|
|
For further information read the linked docs at the top of this README.
|
|
|
|
|
|
|
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
2018-09-02 12:21:05 +00:00
|
|
|
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
2017-02-27 21:46:12 +00:00
|
|
|
|
|
|
|
[![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks)
|