@stryke/fs 0.20.5 â 0.20.7
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 +3 -9
- package/dist/remove-file.cjs +2 -10
- package/dist/remove-file.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -22,15 +22,10 @@ This package is part of Storm Software's **đŠī¸ Stryke** monorepo. Stryke pac
|
|
|
22
22
|
|
|
23
23
|
<h3 align="center">đģ Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
24
24
|
|
|
25
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
26
26
|
|
|
27
|
-
> [!IMPORTANT]
|
|
28
|
-
> within, is still in it's initial development phase. As a result, bugs and
|
|
29
|
-
> issues are expected with it's usage. When the main development phase
|
|
30
|
-
> completes, a proper release will be performed, the packages will be availible
|
|
31
|
-
> through NPM (and other distributions), and this message will be removed.
|
|
32
|
-
> However, in the meantime, please feel free to report any issues you may come
|
|
33
|
-
> across.
|
|
27
|
+
> [!IMPORTANT] Important
|
|
28
|
+
> This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
|
|
34
29
|
|
|
35
30
|
<div align="center">
|
|
36
31
|
<b>Be sure to â this repository on <a href="https://github.com/storm-software/stryke" target="_blank">GitHub</a> so you can keep up to date on any daily progress!</b>
|
|
@@ -53,7 +48,6 @@ provides a more modern and functional approach to working with the file system.
|
|
|
53
48
|
|
|
54
49
|
<!-- START doctoc -->
|
|
55
50
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
56
|
-
|
|
57
51
|
## Table of Contents
|
|
58
52
|
|
|
59
53
|
- [Installing](#installing)
|
package/dist/remove-file.cjs
CHANGED
|
@@ -7,18 +7,10 @@ exports.removeFileSync = exports.removeFile = void 0;
|
|
|
7
7
|
var _nodeFs = require("node:fs");
|
|
8
8
|
var _promises = require("node:fs/promises");
|
|
9
9
|
const removeFileSync = r => {
|
|
10
|
-
|
|
11
|
-
console.warn("Skipping - Invalid file path provided to `removeFileSync`");
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
(0, _nodeFs.rmSync)(r);
|
|
10
|
+
!r || !(0, _nodeFs.existsSync)(r) || (0, _nodeFs.rmSync)(r);
|
|
15
11
|
},
|
|
16
12
|
removeFile = async r => {
|
|
17
|
-
if (!r || !(0, _nodeFs.existsSync)(r))
|
|
18
|
-
console.warn("Skipping - Invalid file path provided to `removeFile`");
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
return (0, _promises.rm)(r);
|
|
13
|
+
if (!(!r || !(0, _nodeFs.existsSync)(r))) return (0, _promises.rm)(r);
|
|
22
14
|
};
|
|
23
15
|
exports.removeFile = removeFile;
|
|
24
16
|
exports.removeFileSync = removeFileSync;
|
package/dist/remove-file.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{existsSync as o,rmSync as
|
|
1
|
+
import{existsSync as o,rmSync as n}from"node:fs";import{rm as e}from"node:fs/promises";export const removeFileSync=r=>{!r||!o(r)||n(r)},removeFile=async r=>{if(!(!r||!o(r)))return e(r)};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/fs",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@antfu/install-pkg": "^1.0.0",
|
|
16
16
|
"@ltd/j-toml": "^1.38.0",
|
|
17
|
-
"@stryke/convert": "^0.2.
|
|
18
|
-
"@stryke/path": "^0.7.
|
|
17
|
+
"@stryke/convert": "^0.2.2",
|
|
18
|
+
"@stryke/path": "^0.7.6",
|
|
19
19
|
"@zkochan/js-yaml": "^0.0.7",
|
|
20
20
|
"chalk": "^5.4.1",
|
|
21
21
|
"defu": "^6.1.4",
|