# weald

> The debug module but TypeScript

Latest version **1.1.3** (published 2026-05-26) · Apache-2.0 OR MIT license · 0 weekly downloads

## Install

```sh
npm install weald
pnpm add weald
yarn add weald
bun add weald
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2026-05-26 |
| First published | 2024-08-02 |
| Weekly downloads | 0 |
| License | Apache-2.0 OR MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 109.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2 |
| Maintainers | achingbrain |
| Keywords | debug, log |

## Links

- npm: https://www.npmjs.com/package/weald
- Repository: https://github.com/achingbrain/weald
- Homepage: https://github.com/achingbrain/weald#readme
- Issues: https://github.com/achingbrain/weald/issues
- npm.io page: https://npm.io/package/weald

## Dependencies (2)

- [ms](https://npm.io/package/ms.md) ^4.0.0-nightly.202508271359
- [supports-color](https://npm.io/package/supports-color.md) ^10.0.0

## 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

- 1.1.3 (latest) — 2026-05-26
- 1.1.2 — 2026-05-26
- 1.1.1 — 2025-10-23
- 1.1.0 — 2025-10-22
- 1.0.6 — 2025-08-27
- 1.0.5 — 2025-08-27
- 1.0.4 — 2024-10-07
- 1.0.3 — 2024-09-24
- 1.0.2 — 2024-08-02
- 1.0.1 — 2024-08-02
- 1.0.0 — 2024-08-02
- 0.0.0 — 2024-08-02

## README

# weald

[![codecov](https://img.shields.io/codecov/c/github/achingbrain/weald.svg?style=flat-square)](https://codecov.io/gh/achingbrain/weald)
[![CI](https://img.shields.io/github/actions/workflow/status/achingbrain/weald/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/achingbrain/weald/actions/workflows/js-test-and-release.yml?query=branch%3Amain)

> The debug module but TypeScript

# About

<!--

!IMPORTANT!

Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.

To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts

To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.

-->

This module is a fork of the [debug](https://www.npmjs.com/package/debug) module. It has been converted to TypeScript and the output is ESM.

It is API compatible with no extra features or bug fixes, it should only be used if you want a 100% ESM application.

ESM should be arriving in `debug@5.x.x` so this module can be retired after that.

Please see [debug](https://www.npmjs.com/package/debug) for API details.

# Install

```console
$ npm i weald
```

## Browser `<script>` tag

Loading this module through a script tag will make its exports available as `Weald` in the global namespace.

```html
<script src="https://unpkg.com/weald/dist/index.min.js"></script>
```

# API Docs

- <https://achingbrain.github.io/weald>

# License

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/weald/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/weald/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

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