https://github.com/weibozzz/buildtime
buildTime 一个打包后可查看版本时间等信息
https://github.com/weibozzz/buildtime
Last synced: about 2 months ago
JSON representation
buildTime 一个打包后可查看版本时间等信息
- Host: GitHub
- URL: https://github.com/weibozzz/buildtime
- Owner: Weibozzz
- Created: 2023-03-09T02:46:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T03:40:22.000Z (about 2 years ago)
- Last Synced: 2025-02-28T10:00:52.154Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# build-time-info
一个打包后可查看版本时间等信息
## 快速使用
```shell
npm i build-time-info -D```
```js
import buildInfo, { buildFn, buildTime } from 'build-time-info'console.log(buildInfo)
console.log(buildTime)
// 构建时间:3/9/2023, 12:11:32 PM;构建人:xxx;分支:master;最后提交msg:xxx;最后提交时间:2023-02-17 09:34:29;最后提交commitId:xxx;
console.log(buildFn)
/**
* {
buildTime,
publishPerson,
branch,
lastSubmitTxt,
lastSubmitTime,
lastId,
}
*/// or
const buildInfo = require('build-time-info')```