1.0.2 • Published 6 years ago

rename-imports-codemod v1.0.2

Weekly downloads
7
License
X11
Repository
-
Last release
6 years ago

Rename imports Codeshift

Search and replace static import statements Codeshift transformer

This jscodeshift codemod/transform replaces import source text.

It was created specifically to deal with private repositories- their @name is not a valid module name.

However this tool also can be useful for generating creating mounting of libraries.

A fork of cjs-to-es6 has this codemod builtin. Pass a --renameImportSource=^@(.*)/_$1/ arument to the run to run your own rename, or let it default to that search & replace.