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
- Host: GitHub
- URL: https://github.com/aleclarson/typescript-rewrite-paths
- Owner: aleclarson
- License: mit
- Created: 2019-06-12T17:32:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:01:26.000Z (over 3 years ago)
- Last Synced: 2025-03-15T13:47:09.872Z (over 1 year ago)
- Topics: import, transformer, typescript
- Language: TypeScript
- Homepage:
- Size: 850 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
})
```