1 | # node-mv
|
2 |
|
3 | This is a utility command line tool for renaming or moving a node.js file. It will update all the files
|
4 | under the current folder to have correct reference to the moved file. And also it will update all the file paths
|
5 | required in the renamed/moved file.
|
6 |
|
7 | Note: Both js and coffee files are supported.
|
8 | 1. Both js and coffee files are supported.
|
9 |
|
10 | ## How to get it?
|
11 |
|
12 | ```bash
|
13 | npm install node-mv -g
|
14 | ```
|
15 |
|
16 | ## How to run it?
|
17 |
|
18 | ### Run it without any options
|
19 | ```bash
|
20 | node-mv sample.js sample-renamed.js
|
21 | ```
|
22 |
|
23 | ### Exclude dir/files
|
24 |
|
25 | You can pass a list of regex to `--excludes` to exclude folders or files you don't want the program to search
|
26 |
|
27 | ```bash
|
28 | node-mv sample.js sample-renamed.js --excludes=/build/
|
29 | ```
|
30 |
|
31 | ### Git support
|
32 |
|
33 | If you source file is under git repo, use `--git` option
|
34 |
|
35 |
|
36 | ```bash
|
37 | node-mv sample.js sample-renamed.js --git
|
38 | ```
|
39 |
|
40 | ## License
|
41 | The MIT License (MIT)
|
42 |
|
43 | Copyright (c) 2014 viruschidai@gmail.com
|
44 |
|
45 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
46 | of this software and associated documentation files (the "Software"), to deal
|
47 | in the Software without restriction, including without limitation the rights
|
48 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
49 | copies of the Software, and to permit persons to whom the Software is
|
50 | furnished to do so, subject to the following conditions:
|
51 |
|
52 | The above copyright notice and this permission notice shall be included in
|
53 | all copies or substantial portions of the Software.
|
54 |
|
55 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
56 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
57 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
58 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
59 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
60 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
61 | THE SOFTWARE.
|