Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chialab/estransform

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/estransform

Execute multiple transformations on JavaScript sources with full sourcemaps support.

  • 0.17.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-14.65%
Maintainers
2
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 04 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc