https://github.com/zaibot/ts-transforms
https://github.com/zaibot/ts-transforms
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zaibot/ts-transforms
- Owner: Zaibot
- Created: 2018-03-15T13:38:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T05:32:17.000Z (about 7 years ago)
- Last Synced: 2025-02-11T23:11:21.789Z (10 months ago)
- Language: TypeScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @zaibot/ts-transforms
## Installation
```bash
npm install @zaibot/ts-transforms
```
## Usage
```ts
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