# ray-plugins

> the plugins for webpack

Latest version **2.1.0** (published 2025-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install ray-plugins
pnpm add ray-plugins
yarn add ray-plugins
bun add ray-plugins
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2025-09-03 |
| First published | 2016-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 26.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ilex.h |
| Maintainers | ilex.h |
| Keywords | open, log |

## Links

- npm: https://www.npmjs.com/package/ray-plugins
- Repository: https://github.com/ilex0208/ray-plugins
- Homepage: https://github.com/ilex0208/ray-plugins#readme
- Issues: https://github.com/ilex0208/ray-plugins/issues
- npm.io page: https://npm.io/package/ray-plugins

## Dependencies (5)

- [open](https://npm.io/package/open.md) 7.1.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [address](https://npm.io/package/address.md) ^1.1.2
- [ansi-styles](https://npm.io/package/ansi-styles.md) ^4.2.1
- [ansi-escapes](https://npm.io/package/ansi-escapes.md) ^4.3.1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 2.1.0 (latest) — 2025-09-03
- 2.0.1 — 2023-10-07
- 2.0.0 — 2020-07-24
- 1.0.6 — 2017-06-17
- 1.0.5 — 2017-06-17
- 1.0.4 — 2017-06-16
- 1.0.3 — 2017-06-16
- 1.0.2 — 2017-06-03
- 1.0.1 — 2017-05-29
- 1.0.0 — 2016-12-28

## README

# ray-plugins

the plugins for webpack


## author

  ilex.h

## api

|name|description|
|------|------|
|OpenUrlPluginClass|`es6 直接用默认浏览器打开url`|
|OpenUrlPlugins|`直接用默认浏览器打开url`|
|OpenBrowser|`直接用默认浏览器打开url`|
|RayShow|`webpack打包进度展示`|
|RayProgress|`webpack打包进度展示(推荐使用)`|
|browser|`浏览器参数 chrome|firefox`|
|tools|`常用工具tools.trim(str): 移除字符串前后空格`|


```js
const OpenBrowser = require('ray-plugins/lib/openBrowser');

const commonConfig = {
  plugins: [
    // open http://localhost:3000 in default browser
    new OpenBrowser({ url: 'http://localhost:3000' }),
    // more options
    // specify firefox to open
    new OpenBrowser({ url: 'http://localhost:3000', browser: 'firefox' }),
    // delay 3 seconds
    new OpenBrowser({ url: 'http://localhost:3000', delay: 3 * 1000 }),
    // By default, this plugin only works when no compile error
    new OpenBrowser({ url: 'http://localhost:3000', ignoreErrors: true }),
    // You can set a group of option to open multiple urls in multiple browsers
    new OpenBrowser([
      { url: 'http://localhost:3000', browser: 'chrome' },
      { url: 'http://localhost:3000', browser: 'firefox' },
    ]),
  ],
};
```

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