This package has been deprecated

Author message:

No longer maintained

rename-js-module

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i rename-js-module

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • npm