ktfile 0.0.2 → 0.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ktfile",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Fluent, modern and chainable File API\n\n",
5
5
  "main": "index.min.js",
6
6
  "types": "types/ktfile.d.ts",
@@ -130,14 +130,15 @@ export declare class FileSync extends IFile<ISyncFS> {
130
130
  */
131
131
  set lastModified(value: Date);
132
132
  /**
133
- * @description Gets the last access time of the file.
134
- * The last access time is the time when the file was last accessed in the file system.
135
- * If the file does not exist, it returns null.
133
+ * @description Checks if the file exists.
136
134
  * @example
137
135
  * const file = new FileSync("path/to/file.txt");
138
- * console.log("Last access time:", file.lastAccess);
139
- * // Output: Last access time: 2023-10-01T12:00:00.000Z
140
- * @returns {Date | null} The last access time of the file as a Date object, or null if the file does not exist.
136
+ * if (file.exists) {
137
+ * console.log("File exists.");
138
+ * } else {
139
+ * console.log("File does not exist.");
140
+ * }
141
+ * @returns {boolean | null} True if the file exists, false if it does not, or null if the file system cannot be accessed.
141
142
  */
142
143
  get exists(): boolean | null;
143
144
  /**
@@ -1,34 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: "[BUG]"
5
- labels: ''
6
- assignees: OguzhanUmutlu
7
-
8
- ---
9
-
10
- **Environment:**
11
-
12
- - OS: [e.g. Windows 10, macOS 12, Ubuntu 20.04]
13
- - Node.js: [e.g. 16.14.0]
14
- - KTFile: [e.g. 1.0.0]
15
-
16
- **Description:**
17
- Clear description of the bug
18
-
19
- **Reproduction:**
20
-
21
- ```typescript
22
- // Minimal code example
23
- const file = fileSync('./example.txt');
24
- // Steps to reproduce...
25
- ```
26
-
27
- **Expected Behavior:**
28
- What should happen
29
-
30
- **Actual Behavior:**
31
- What actually happens
32
-
33
- **Additional Context:**
34
- Any other relevant information
@@ -1,27 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: "[FEATURE]"
5
- labels: enhancement
6
- assignees: OguzhanUmutlu
7
-
8
- ---
9
-
10
- **Feature Description:**
11
- Clear description of the proposed feature
12
-
13
- **Use Case:**
14
- Why is this feature needed? What problem does it solve?
15
-
16
- **Proposed API:**
17
-
18
- ```typescript
19
- // Example of how the feature might work
20
- file.newMethod(parameters);
21
- ```
22
-
23
- **Alternatives Considered:**
24
- What other approaches did you consider?
25
-
26
- **Additional Context:**
27
- Any other relevant information