Skip to content

Zaibot/ts-transforms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@zaibot/ts-transforms

Installation

npm install @zaibot/ts-transforms

Usage

import { applyTransformations, addWildCardImport } from '@zaibot/ts-transforms';

const transform = applyTransformations([
    addWildCardImport('react-dom', 'ReactDOM')
]);

const input = `import * as React from "react";`;

console.log(transform(input));

// Output:
// import * as ReactDOM from "react-dom";
// import * as React from "react";
//

Transformations:

  • addWildCardImport

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published