@bemoje/fs 0.2.2 → 0.2.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/README.md +29 -6
- package/package.json +1 -1
- package/src/lib/isWindows.d.ts +2 -0
- package/src/lib/isWindows.js +10 -2
- package/src/lib/isWindows.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
|
-
# fs
|
|
1
|
+
# @bemoje/fs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Tools for working with the local filesystem in nodejs.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
6
9
|
|
|
7
|
-
|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
8
13
|
|
|
9
|
-
## Running unit tests
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
## Documentation
|
|
16
|
+
[Documentation Website](https://bemoje.github.io/tsmono/modules/fs.html)
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
This library is published in the NPM registry and can be installed using any compatible package manager.
|
|
20
|
+
|
|
21
|
+
#### NPM
|
|
22
|
+
```sh
|
|
23
|
+
npm install @bemoje/fs
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Issues
|
|
28
|
+
Please let me know of any bugs or [issues](https://github.com/bemoje/tsmono/issues).
|
|
29
|
+
|
|
30
|
+
## Contribute
|
|
31
|
+
Contributors are welcome to open a [pull request](https://github.com/bemoje/tsmono/pulls).
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
Released under the [MIT License](./LICENSE).
|
package/package.json
CHANGED
package/src/lib/isWindows.d.ts
CHANGED
package/src/lib/isWindows.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isWindows = void 0;
|
|
3
|
+
exports.isLinux = exports.isOSX = exports.isWindows = void 0;
|
|
4
4
|
function isWindows() {
|
|
5
|
-
return process.platform.
|
|
5
|
+
return process && (process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env['OSTYPE'] || ''));
|
|
6
6
|
}
|
|
7
7
|
exports.isWindows = isWindows;
|
|
8
|
+
function isOSX() {
|
|
9
|
+
return process.platform === 'darwin';
|
|
10
|
+
}
|
|
11
|
+
exports.isOSX = isOSX;
|
|
12
|
+
function isLinux() {
|
|
13
|
+
return process.platform === 'linux';
|
|
14
|
+
}
|
|
15
|
+
exports.isLinux = isLinux;
|
|
8
16
|
//# sourceMappingURL=isWindows.js.map
|
package/src/lib/isWindows.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isWindows.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/isWindows.ts"],"names":[],"mappings":";;;AAAA,SAAgB,SAAS;IACvB,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"isWindows.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/isWindows.ts"],"names":[],"mappings":";;;AAAA,SAAgB,SAAS;IACvB,OAAO,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;AACzG,CAAC;AAFD,8BAEC;AAED,SAAgB,KAAK;IACnB,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAA;AACtC,CAAC;AAFD,sBAEC;AAED,SAAgB,OAAO;IACrB,OAAO,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AACrC,CAAC;AAFD,0BAEC"}
|