# @chialab/estransform

> Execute multiple transformations on JavaScript sources with full sourcemaps support.

Latest version **0.20.1** (published 2026-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chialab/estransform
pnpm add @chialab/estransform
yarn add @chialab/estransform
bun add @chialab/estransform
```

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.20.1 |
| Published | 2026-08-26 |
| First published | 2021-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 5 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 183 |
| Author | Chialab |
| Maintainers | chialab-admin, chialab-developers |
| Keywords | estransform, pipe, transform, sourcemaps |

## Links

- npm: https://www.npmjs.com/package/@chialab/estransform
- Repository: https://github.com/chialab/rna
- Homepage: https://github.com/chialab/rna#readme
- Issues: https://github.com/chialab/rna/issues
- npm.io page: https://npm.io/package/@chialab/estransform

## Dependencies (5)

- [oxc-parser](https://npm.io/package/oxc-parser.md) >=0.114.0 <1.0.0
- [magic-string](https://npm.io/package/magic-string.md) ^1.0.0
- [es-module-lexer](https://npm.io/package/es-module-lexer.md) ^1.0.0
- [cjs-module-lexer](https://npm.io/package/cjs-module-lexer.md) ^1.2.2
- [@parcel/source-map](https://npm.io/package/@parcel/source-map.md) ^2.0.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.20.1 (latest) — 2026-08-26
- 0.19.0-beta.1 (beta) — 2024-07-09
- 0.18.0-alpha.1 (alpha) — 2023-08-29
- 0.20.0 — 2026-05-28
- 0.19.1 — 2026-02-25
- 0.19.0 — 2025-08-25
- 0.19.0-beta.0 — 2024-03-11
- 0.18.1 — 2024-03-08
- 0.18.0 — 2024-01-11
- 0.17.5 — 2023-09-04
- 0.17.4 — 2023-06-12
- 0.18.0-alpha.0 — 2023-05-01
- 0.17.3 — 2022-10-06
- 0.17.2 — 2022-10-06
- 0.17.1 — 2022-08-25
- … 36 more at https://npm.io/package/@chialab/estransform/versions

## README

# Estransform

Execute multiple transformations on JavaScript sources with full sourcemaps support.

[![NPM](https://img.shields.io/npm/v/@chialab/estransform.svg)](https://www.npmjs.com/package/@chialab/estransform)

## Install

```sh
npm i @chialab/estransform -D
```

```sh
yarn add @chialab/estransform -D
```

```sh
pnpm add @chialab/estransform -D
```

## Usage

```js
import { parse } from '@chialab/estransform';

const { ast, helpers } = await transform('require("tslib"); module.exports = function() {}', {
    sourceContents: true,
});

helpers.overwrite(0, contents.length, 'Hello!');
```

## License

**Estransform** is released under the [MIT](https://github.com/chialab/rna/blob/main/packages/estransform/LICENSE) license.

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