https://github.com/huauauaa/maojian
git info
https://github.com/huauauaa/maojian
git npm tea
Last synced: 21 days ago
JSON representation
git info
- Host: GitHub
- URL: https://github.com/huauauaa/maojian
- Owner: Huauauaa
- Created: 2022-10-22T09:03:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T13:23:32.000Z (about 3 years ago)
- Last Synced: 2025-10-01T23:41:53.882Z (28 days ago)
- Topics: git, npm, tea
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@harvey0379/maojian
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```