@cloudcmd/formatify 1.0.3 → 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 +23 -0
- package/README.md +14 -16
- package/lib/formatify.js +0 -1
- package/package.json +13 -12
package/ChangeLog
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
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
|
+
|
|
18
|
+
2019.10.11, v1.0.4
|
|
19
|
+
|
|
20
|
+
feature:
|
|
21
|
+
- (package) shortdate v2.0.0
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
2019.09.20, v1.0.3
|
|
2
25
|
|
|
3
26
|
feature:
|
package/README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
# Formatify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![
|
|
1
|
+
# Formatify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
|
|
2
2
|
|
|
3
|
-
[NPMIMGURL]:
|
|
4
|
-
[BuildStatusIMGURL]:
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
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:
|
|
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:
|
|
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]:
|
|
69
|
-
[CoverageIMGURL]:
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcmd/formatify",
|
|
3
|
-
"version": "
|
|
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",
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"format-io": "^2.0.0",
|
|
25
|
-
"shortdate": "^
|
|
26
|
+
"shortdate": "^2.0.0"
|
|
26
27
|
},
|
|
27
28
|
"keywords": [
|
|
28
29
|
"format",
|
|
@@ -35,19 +36,19 @@
|
|
|
35
36
|
"license": "MIT",
|
|
36
37
|
"main": "lib/formatify.js",
|
|
37
38
|
"engines": {
|
|
38
|
-
"node": ">=
|
|
39
|
+
"node": ">=18"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
42
|
+
"c8": "^10.1.2",
|
|
41
43
|
"coveralls": "^3.0.0",
|
|
42
|
-
"eslint": "^
|
|
43
|
-
"eslint-plugin-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
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"
|