typescript-rewrite-paths

typescript-rewrite-paths JS library on GitHub typescript-rewrite-paths JS library on npm Download typescript-rewrite-paths JS library

Rewrite import paths in TypeScript code

Version 1.3.1 License MIT
typescript-rewrite-paths has no homepage
typescript-rewrite-paths JS library on GitHub
typescript-rewrite-paths JS library on npm
Download typescript-rewrite-paths JS library
Keywords
typescriptrewriteimportpaths

typescript-rewrite-paths

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
})