Namchee / henshin

Collection of TypeScript transformers for various uses,

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Henshin

Collection of TypeScript custom transformers for various uses.

Transformers

Below are the list of available transformers in packages. All transformers can be installed through @namchee/henshin-<transformer_name>.

Name Description
strip-debug Replaces debugging statements with void expressions

Usage

There are 4 ways to consume the transformers:

  1. CLI Wrapper

    By default, TypeScript does not support custom transformers by default. The community addresses this issue by providing a CLI wrapper that augments the functionality of tsc. such as ttypescript and ts-patch.

  2. Compiler API

    Besides using third-party, custom compilers can be consumed by creating your own pipeline using Compiler API using transform or transpile.

  3. Bundlers

    Some bundlers provides way to consume custom transformers through plugins such as webpack via ts-loader or ttypescript plugin for parcel and rollup

  4. Helper function

    For convenience, every transformers in Henshin exposes a helper function besides transformer factory that takes care of the transformation process by simply providing the file contents and options. Please refer to each package README.md for more information about helper functions.

License

This project is licensed under the MIT License

About

Collection of TypeScript transformers for various uses,

License:MIT License


Languages

Language:TypeScript 99.2%Language:JavaScript 0.8%