Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cenfun/esbuild-metadata-report
esbuild metafile report
https://github.com/cenfun/esbuild-metadata-report
analyzer esbuild metadata metafile report
Last synced: about 1 month ago
JSON representation
esbuild metafile report
- Host: GitHub
- URL: https://github.com/cenfun/esbuild-metadata-report
- Owner: cenfun
- License: mit
- Created: 2024-01-16T09:35:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-19T01:37:05.000Z (11 months ago)
- Last Synced: 2024-10-18T08:52:31.850Z (2 months ago)
- Topics: analyzer, esbuild, metadata, metafile, report
- Language: Vue
- Homepage: https://cenfun.github.io/esbuild-metadata-report/
- Size: 155 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# esbuild-metadata-report
> Metadata Report for [esbuild](https://github.com/evanw/esbuild)[![](https://img.shields.io/npm/v/esbuild-metadata-report)](https://www.npmjs.com/package/esbuild-metadata-report)
[![](https://badgen.net/npm/dw/esbuild-metadata-report)](https://www.npmjs.com/package/esbuild-metadata-report)
![](https://img.shields.io/github/license/cenfun/esbuild-metadata-report)## Preview
- [https://cenfun.github.io/esbuild-metadata-report/](https://cenfun.github.io/esbuild-metadata-report/)## Install
```
npm i esbuild-metadata-report
```## Usage
- As esbuild plugin
```js
const metadataReport = require('esbuild-metadata-report');
await esbuild.build({// required metafile is true
metafile: true,plugins: [
metadataReport({
name: 'Metadata Report',
outputFile: './metadata-reports/index.html'
})
]
});```
- As a function
```js
const metadataReport = require('esbuild-metadata-report');
const res = await esbuild.build({// required metafile is true
metafile: true});
const htmlPath = metadataReport({
metadata: res.metafile,
name: 'Metadata Report',
outputFile: './metadata-reports/index.html'
});```