# unplugin-record-time

> Time reporting for Vite/Rollup/Webpack project.

Latest version **0.0.1** (published 2023-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install unplugin-record-time
pnpm add unplugin-record-time
yarn add unplugin-record-time
bun add unplugin-record-time
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-08-30 |
| First published | 2023-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 24 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Elone Hoo |
| Maintainers | elonehoo |
| Keywords | unplugin, vite, webpack, rollup, transform |

## Links

- npm: https://www.npmjs.com/package/unplugin-record-time
- Repository: https://github.com/elonehoo/unplugin-record-time
- Homepage: https://github.com/elonehoo/unplugin-record-time#readme
- Issues: https://github.com/elonehoo/unplugin-record-time/issues
- npm.io page: https://npm.io/package/unplugin-record-time

## Dependencies (1)

- [unplugin](https://npm.io/package/unplugin.md) ^1.4.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2023-08-30

## README

# unplugin-record-time

[![NPM version](https://img.shields.io/npm/v/unplugin-record-time?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-record-time)

Time reporting for Vite/Rollup/Webpack project.

## Install

```bash
npm i -D unplugin-record-time
```

<details>
<summary>Vite</summary><br>

```ts
// vite.config.ts
import recordTime from 'unplugin-record-time/vite'

export default defineConfig({
  plugins: [
    recordTime({ /* options */ }),
  ],
})
```

Example: [`playground/`](./playground/)

<br></details>

<details>
<summary>Rollup</summary><br>

```ts
// rollup.config.js
import recordTime from 'unplugin-record-time/rollup'

export default {
  plugins: [
    recordTime({ /* options */ }),
  ],
}
```

<br></details>

<details>
<summary>Webpack</summary><br>

```ts
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-record-time/webpack')({ /* options */ })
  ]
}
```

<br></details>

<details>
<summary>Nuxt</summary><br>

```ts
// nuxt.config.js
export default defineNuxtConfig({
  modules: [
    ['unplugin-record-time/nuxt', { /* options */ }],
  ],
})
```

> This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)

<br></details>

<details>
<summary>Vue CLI</summary><br>

```ts
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-record-time/webpack')({ /* options */ }),
    ],
  },
}
```

<br></details>

---
_Source: https://npm.io/package/unplugin-record-time · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
