An open API service indexing awesome lists of open source software.

https://github.com/aleclarson/typescript-rewrite-paths

Rewrite import paths in TypeScript code
https://github.com/aleclarson/typescript-rewrite-paths

import transformer typescript

Last synced: 4 months ago
JSON representation

Rewrite import paths in TypeScript code

Awesome Lists containing this project

README

          

# typescript-rewrite-paths

```ts
import {rewritePaths} from 'typescript-rewrite-paths'

// The input and output are code strings.
const output = rewritePaths(input, path => {
// Return a string or falsy.
return path
})
```