An open API service indexing awesome lists of open source software.

https://github.com/huauauaa/maojian

git info
https://github.com/huauauaa/maojian

git npm tea

Last synced: 21 days ago
JSON representation

git info

Awesome Lists containing this project

README

          

# maojian

> maojian (毛尖) is a kind of tea.

> Get git info from `.git`

## Usage

`yarn add @harvey0379/maojian`

### mjs

```js
const getGitInfo = require('@harvey0379/maojian');
const gitInfo = getGitInfo();
```

### esm

```js
import getGitInfo from '@harvey0379/maojian';
const gitInfo = getGitInfo();
```

## Typescript Support

```ts
import getGitInfo, { GitInfo, Params } from '@harvey0379/maojian';

const param: Params = {};
const gitInfo: GitInfo = getGitInfo(param);
```