@chialab/estransform
TypeScript icon, indicating that this package has built-in type declarations

0.18.1 • Public • Published

Estransform • Execute multiple transformations on JavaScript sources with full sourcemaps support.

NPM


Install

npm i @chialab/estransform -D
yarn add @chialab/estransform -D

Usage

import { transform } from '@chialab/estransform';

const { code, map } = await transform(
    'require("tslib"); module.exports = function() {}',
    { sourceContents: true },
    (magicCode, contents) => {
        magicCode.overwrite(0, contents.length, 'Hello!');
    }
);

License

Estransform is released under the MIT license.

Package Sidebar

Install

npm i @chialab/estransform

Weekly Downloads

8,613

Version

0.18.1

License

MIT

Unpacked Size

1.26 MB

Total Files

11

Last publish

Collaborators

  • chialab-admin
  • chialab-developers