Détail du package

typescript-rewrite-paths

aleclarson38MIT1.3.1

Rewrite import paths in TypeScript code

typescript, rewrite, import, paths

readme

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