@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 CHANGED
@@ -1,11 +1,34 @@
1
- # fs
1
+ # @bemoje/fs
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ Tools for working with the local filesystem in nodejs.
4
4
 
5
- ## Building
5
+ ![npm (scoped)](https://img.shields.io/npm/v/%40bemoje/trie-map)
6
+ ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/%40bemoje/fs)
7
+ ![npm](https://img.shields.io/npm/dt/%40bemoje/fs)
8
+ ![NPM](https://img.shields.io/npm/l/%40bemoje%2Ffs)
6
9
 
7
- Run `nx build fs` to build the library.
10
+ ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/bemoje/tsmono)
11
+ ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/bemoje/tsmono)
12
+ ![GitHub top language](https://img.shields.io/github/languages/top/bemoje/tsmono)
8
13
 
9
- ## Running unit tests
10
14
 
11
- Run `nx test fs` to execute the unit tests via [Jest](https://jestjs.io).
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bemoje/fs",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Tools for working with the local filesystem in nodejs.",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {},
@@ -1 +1,3 @@
1
1
  export declare function isWindows(): boolean;
2
+ export declare function isOSX(): boolean;
3
+ export declare function isLinux(): boolean;
@@ -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.includes('win');
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
@@ -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;AACzC,CAAC;AAFD,8BAEC"}
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"}