caselyjs 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/{rename.js → casely.js} +1 -1
- package/index.js +1 -1
- package/package.json +28 -28
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 🛠️ caselyjs
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**caselyjs** is a CLI and programmatic tool that helps you **rename files and folders** in bulk using a consistent naming convention like `kebab-case`, `camelCase`, or `PascalCase`.
|
|
4
4
|
|
|
5
5
|
> Say goodbye to manually renaming 100+ files in your project!
|
|
6
6
|
|
|
@@ -18,13 +18,13 @@ npm install caselyjs
|
|
|
18
18
|
|
|
19
19
|
```js
|
|
20
20
|
// index.js
|
|
21
|
-
import {
|
|
21
|
+
import { casely } from 'caselyjs';
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
casely.config({
|
|
24
24
|
path: 'src'
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
casely.execute();
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
## ⚙️ Config Options
|
|
@@ -32,7 +32,7 @@ rename.execute();
|
|
|
32
32
|
### Default Options
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
|
-
|
|
35
|
+
casely.config({
|
|
36
36
|
path: 'src',
|
|
37
37
|
case: 'kebab',
|
|
38
38
|
file: ['js', 'jsx'],
|
|
@@ -48,7 +48,7 @@ rename.config({
|
|
|
48
48
|
> default file extensions `['js', 'jsx']`, can include more extenstion in the array.\
|
|
49
49
|
> eg.
|
|
50
50
|
> ```js
|
|
51
|
-
>
|
|
51
|
+
> casely.config({
|
|
52
52
|
> // ...previous
|
|
53
53
|
> file: ['js', 'jsx', 'ts', 'tsx']
|
|
54
54
|
> })
|
package/{rename.js → casely.js}
RENAMED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./casely.js"
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "caselyjs",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "A tool for renaming files and folders in a efficient way",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"rename": "node index.js"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/Ninja-Vikash/caselyjs.git"
|
|
13
|
-
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"rename",
|
|
16
|
-
"case",
|
|
17
|
-
"utility",
|
|
18
|
-
"file-renamer",
|
|
19
|
-
"casely",
|
|
20
|
-
"case-converter"
|
|
21
|
-
],
|
|
22
|
-
"author": "ninja-vikash",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"bugs": {
|
|
25
|
-
"url": "https://github.com/Ninja-Vikash/caselyjs/issues"
|
|
26
|
-
},
|
|
27
|
-
"homepage": "https://github.com/Ninja-Vikash/caselyjs#readme"
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "caselyjs",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "A tool for renaming files and folders in a efficient way",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"rename": "node index.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Ninja-Vikash/caselyjs.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"rename",
|
|
16
|
+
"case",
|
|
17
|
+
"utility",
|
|
18
|
+
"file-renamer",
|
|
19
|
+
"casely",
|
|
20
|
+
"case-converter"
|
|
21
|
+
],
|
|
22
|
+
"author": "ninja-vikash",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/Ninja-Vikash/caselyjs/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/Ninja-Vikash/caselyjs#readme"
|
|
28
|
+
}
|