@cloudcmd/formatify 1.0.4 → 2.0.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/ChangeLog CHANGED
@@ -1,3 +1,20 @@
1
+ 2024.08.16, v2.0.0
2
+
3
+ feature:
4
+ - d553100 formatify: drop support of node < 18
5
+ - 4ea5c5d @cloudcmd/formatify: try-catch v3.0.1
6
+ - 6909522 @cloudcmd/formatify: nodemon v3.1.4
7
+ - a599cd9 @cloudcmd/formatify: mkdirp v3.0.1
8
+ - 5603d20 @cloudcmd/formatify: madrun v10.1.0
9
+ - 39fc066 @cloudcmd/formatify: eslint-plugin-putout v22.10.0
10
+ - 62c1eeb @cloudcmd/formatify: eslint v9.9.0
11
+ - d28af1b @cloudcmd/formatify: c8 v10.1.2
12
+ - 1a70dc4 @cloudcmd/formatify: supertape v10.7.2
13
+ - 368c9d6 @cloudcmd/formatify: putout v36.0.4
14
+ - 8fcc028 (package) madrun v5.0.1
15
+ - 1cd1d3e (package) eslint-plugin-putout v3.0.0
16
+ - e38f11b (package) putout v7.3.1
17
+
1
18
  2019.10.11, v1.0.4
2
19
 
3
20
  feature:
package/README.md CHANGED
@@ -1,13 +1,11 @@
1
- # Formatify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
1
+ # Formatify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
2
2
 
3
- [NPMIMGURL]: https://img.shields.io/npm/v/@cloudcmd/formatify.svg?style=flat
4
- [BuildStatusIMGURL]: https://img.shields.io/travis/cloudcmd/formatify/master.svg?style=flat
5
- [DependencyStatusIMGURL]: https://img.shields.io/david/cloudcmd/formatify.svg?style=flat
6
- [LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
7
- [NPMURL]: https://npmjs.org/package/@cloudcmd/formatify "npm"
8
- [BuildStatusURL]: https://travis-ci.org/cloudcmd/formatify "Build Status"
9
- [DependencyStatusURL]: https://david-dm.org/cloudcmd/formatify "Dependency Status"
10
- [LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
3
+ [NPMIMGURL]: https://img.shields.io/npm/v/@cloudcmd/formatify.svg?style=flat
4
+ [BuildStatusIMGURL]: https://img.shields.io/travis/cloudcmd/formatify/master.svg?style=flat
5
+ [LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
6
+ [NPMURL]: https://npmjs.org/package/@cloudcmd/formatify "npm"
7
+ [BuildStatusURL]: https://travis-ci.org/cloudcmd/formatify "Build Status"
8
+ [LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
11
9
 
12
10
  Format directory content received by [readify](https://github.com/coderaiser/readify).
13
11
 
@@ -20,6 +18,7 @@ npm i @cloudcmd/formatify --save
20
18
  ## API
21
19
 
22
20
  ### formatify(files)
21
+
23
22
  - **files** - `files list`
24
23
 
25
24
  ## Examples
@@ -30,16 +29,16 @@ const files = [{
30
29
  size: 3538,
31
30
  date,
32
31
  owner: 0,
33
- mode: 33204,
32
+ mode: 33_204,
34
33
  }, {
35
34
  name: 'readify.js',
36
35
  size: 1629,
37
- date: 2016-11-21T13:37:55.275Z,
36
+ date: '2016-11-21T13:37:55.275Z',
38
37
  owner: 0,
39
- mode: 33204,
38
+ mode: 33_204,
40
39
  }];
41
40
 
42
- formatify(files)
41
+ formatify(files);
43
42
  // returns
44
43
  [{
45
44
  name: 'formatify.js',
@@ -65,6 +64,5 @@ formatify(files)
65
64
 
66
65
  MIT
67
66
 
68
- [CoverageURL]: https://coveralls.io/github/cloudcmd/formatify?branch=master
69
- [CoverageIMGURL]: https://coveralls.io/repos/cloudcmd/formatify/badge.svg?branch=master&service=github
70
-
67
+ [CoverageURL]: https://coveralls.io/github/cloudcmd/formatify?branch=master
68
+ [CoverageIMGURL]: https://coveralls.io/repos/cloudcmd/formatify/badge.svg?branch=master&service=github
package/lib/formatify.js CHANGED
@@ -43,4 +43,3 @@ function replaceSize(stat) {
43
43
  size,
44
44
  });
45
45
  }
46
-
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcmd/formatify",
3
- "version": "1.0.4",
3
+ "version": "2.0.0",
4
+ "type": "commonjs",
4
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
6
  "description": "format directory content",
6
7
  "homepage": "http://github.com/cloudcmd/formatify",
@@ -35,19 +36,19 @@
35
36
  "license": "MIT",
36
37
  "main": "lib/formatify.js",
37
38
  "engines": {
38
- "node": ">=8"
39
+ "node": ">=18"
39
40
  },
40
41
  "devDependencies": {
42
+ "c8": "^10.1.2",
41
43
  "coveralls": "^3.0.0",
42
- "eslint": "^6.4.0",
43
- "eslint-plugin-node": "^10.0.0",
44
- "eslint-plugin-putout": "^2.0.0",
45
- "madrun": "^3.0.5",
46
- "mkdirp": "^0.5.1",
47
- "nodemon": "^1.11.0",
48
- "nyc": "^14.1.1",
49
- "putout": "^6.1.0",
50
- "supertape": "^1.2.3"
44
+ "eslint": "^9.9.0",
45
+ "eslint-plugin-putout": "^22.10.0",
46
+ "madrun": "^10.1.0",
47
+ "mkdirp": "^3.0.1",
48
+ "nodemon": "^3.1.4",
49
+ "putout": "^36.0.4",
50
+ "supertape": "^10.7.2",
51
+ "try-catch": "^3.0.1"
51
52
  },
52
53
  "publishConfig": {
53
54
  "access": "public"