1.0.0 • Published 6 years ago

rename-js-module v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

rename-js-module

This is a simple, bare-bones command line script for renaming a JS module's filename and refactoring import statements referencing it to use the new filename. It's a wrapper around jscodeshift and refactoring-codemods's import-declaration-transform codemod.

Installation

npm install --global rename-js-module

Usage

rename-js-module srcDir srcDir/path/to/currentFileName.js srcDir/path/to/newFileName.js