@brianbuie/node-kit 0.9.1 → 0.10.0

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 CHANGED
@@ -70,9 +70,10 @@ sanitizing filenames, and saving files.
70
70
  ```ts
71
71
  export class Dir {
72
72
  path;
73
- constructor(_path: string)
73
+ constructor(_path = "./")
74
74
  create()
75
75
  dir(subPath: string)
76
+ tempDir(subPath: string)
76
77
  sanitize(name: string)
77
78
  filepath(base: string)
78
79
  file(base: string)
@@ -86,7 +87,7 @@ export class Dir {
86
87
  ### Constructor
87
88
 
88
89
  ```ts
89
- constructor(_path: string)
90
+ constructor(_path = "./")
90
91
  ```
91
92
 
92
93
  Argument Details
@@ -112,7 +113,7 @@ Example
112
113
  ```ts
113
114
  const folder = new Dir('example');
114
115
  // folder.path = './example'
115
- const child = folder.subDir('path/to/dir');
116
+ const child = folder.dir('path/to/dir');
116
117
  // child.path = './example/path/to/dir'
117
118
  ```
118
119
 
@@ -245,6 +246,11 @@ WARNING: API will change!
245
246
  ```ts
246
247
  export class File {
247
248
  path;
249
+ root;
250
+ dir;
251
+ base;
252
+ ext;
253
+ name;
248
254
  constructor(filepath: string)
249
255
  get exists()
250
256
  delete()
@@ -436,7 +442,6 @@ Extends Dir class with method to `clear()` contents
436
442
 
437
443
  ```ts
438
444
  export class TempDir extends Dir {
439
- dir(subPath: string)
440
445
  clear()
441
446
  }
442
447
  ```