ac-file-extensions 1.1.9 → 2.0.1
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/.acsemver.js +2 -2
- package/CHANGELOG.md +22 -98
- package/README.md +20 -4
- package/createFile.js +1 -1
- package/index.js +30 -1657
- package/package.json +8 -7
- package/sources/e.json +5 -0
- package/sources/p.json +1 -1
- package/sources/w.json +5 -0
package/.acsemver.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
repository: {
|
|
3
|
-
url: 'https://github.com/
|
|
3
|
+
url: 'https://github.com/admiralcloud/ac-file-extensions'
|
|
4
4
|
},
|
|
5
5
|
jira: {
|
|
6
|
-
url: 'https://
|
|
6
|
+
url: 'https://admiralcloud.atlassian.net'
|
|
7
7
|
},
|
|
8
8
|
changelogFile: __dirname + '/CHANGELOG.md',
|
|
9
9
|
sections: [
|
package/CHANGELOG.md
CHANGED
|
@@ -1,110 +1,34 @@
|
|
|
1
|
-
<a name="
|
|
2
|
-
## [1.1.9](https://github.com/mmpro/fileExtensions/compare/v1.1.8...v1.1.9) (2020-03-24 06:33)
|
|
1
|
+
<a name="2.0.1"></a>
|
|
3
2
|
|
|
3
|
+
## [2.0.1](https://github.com/admiralcloud/ac-file-extensions/compare/v2.0.0..v2.0.1) (2022-01-20 13:21:55)
|
|
4
4
|
|
|
5
|
-
### Bug Fixes
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
Updated packages
|
|
6
|
+
### Bug Fix
|
|
9
7
|
|
|
8
|
+
* **App:** Add support for webp extension | VD | [8dc0e60eafb745130ad6e0e209d19c73a47218d6](https://github.com/admiralcloud/ac-file-extensions/commit/8dc0e60eafb745130ad6e0e209d19c73a47218d6)
|
|
9
|
+
Add support for webp extension
|
|
10
|
+
Related issues: [browse/AC-2507#AC-2507](https://admiralcloud.atlassian.net/browse/AC-2507)
|
|
11
|
+
<a name="2.0.0"></a>
|
|
12
|
+
|
|
13
|
+
# [2.0.0](https://github.com/admiralcloud/ac-file-extensions/compare/v1.2.1..v2.0.0) (2021-11-06 14:48:05)
|
|
10
14
|
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
## [1.1.8](https://github.com/mmpro/fileExtensions/compare/v1.1.7...v1.1.8) (2020-03-04 15:56)
|
|
16
|
+
### Feature
|
|
14
17
|
|
|
18
|
+
* **App:** Package now supports query and list function | MP | [4072a0aca84f0546c0c8b2bf1f1f9d96037879a7](https://github.com/admiralcloud/ac-file-extensions/commit/4072a0aca84f0546c0c8b2bf1f1f9d96037879a7)
|
|
19
|
+
Package now supports query and list functions - please read README
|
|
20
|
+
### Chores
|
|
15
21
|
|
|
16
|
-
|
|
22
|
+
* **App:** Moved to Github AC account | MP | [6fb3176947580bdf11223036d4dea0b347c27bde](https://github.com/admiralcloud/ac-file-extensions/commit/6fb3176947580bdf11223036d4dea0b347c27bde)
|
|
23
|
+
Moved to Github AC account
|
|
24
|
+
## BREAKING CHANGES
|
|
25
|
+
* **App:** Package now supports query and list function
|
|
26
|
+
<a name="1.2.1"></a>
|
|
17
27
|
|
|
18
|
-
|
|
19
|
-
added cpf cognos project file to file extensions
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<a name="1.1.7"></a>
|
|
24
|
-
## [1.1.7](https://github.com/mmpro/fileExtensions/compare/v1.1.6...v1.1.7) (2019-10-24 15:41)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
* **FileExtensions:** added arw sony alpha raw file ext | FT ([27d7210](https://github.com/mmpro/fileExtensions/commit/27d7210))
|
|
30
|
-
added arw sony alpha raw file ext
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<a name="1.1.6"></a>
|
|
35
|
-
## [1.1.6](https://github.com/mmpro/fileExtensions/compare/v1.1.3...v1.1.6) (2019-04-01 14:23)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
### Bug Fixes
|
|
39
|
-
|
|
40
|
-
* **FileExtensions:** added svg and mogrt file types | FT ([8051014](https://github.com/mmpro/fileExtensions/commit/8051014))
|
|
41
|
-
added svg and mogrt file types
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<a name="1.1.3"></a>
|
|
46
|
-
## [1.1.3](https://github.com/mmpro/fileExtensions/compare/v1.1.2...v1.1.3) (2018-09-02 16:42)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
### Bug Fixes
|
|
50
|
-
|
|
51
|
-
* **FileExtensions:** Added ogv and oga extensions | MP ([87dc96d](https://github.com/mmpro/fileExtensions/commit/87dc96d))
|
|
52
|
-
Added ogv and oga extensions
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<a name="1.1.2"></a>
|
|
57
|
-
## [1.1.2](https://github.com/mmpro/fileExtensions/compare/v1.1.1...v1.1.2) (2018-09-02 11:44)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
* **FileExtensions:** Added several RAW file types | MP ([cc50171](https://github.com/mmpro/fileExtensions/commit/cc50171))
|
|
63
|
-
Added several RAW file types
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<a name="1.1.1"></a>
|
|
68
|
-
## [1.1.1](https://github.com/mmpro/fileExtensions/compare/v1.1.0...v1.1.1) (2018-08-31 09:10)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Bug Fixes
|
|
72
|
-
|
|
73
|
-
* **FileExtensions:** add raw | FT ([305cf42](https://github.com/mmpro/fileExtensions/commit/305cf42))
|
|
74
|
-
add raw
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
<a name="1.1.0"></a>
|
|
79
|
-
# [1.1.0](https://github.com/mmpro/fileExtensions/compare/v1.0.1...v1.1.0) (2018-06-17 20:47)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### Features
|
|
83
|
-
|
|
84
|
-
* **Misc:** Force minor version update | MP ([ec03384](https://github.com/mmpro/fileExtensions/commit/ec03384))
|
|
85
|
-
Force minor version update to avoid conflicts with outdated versions
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<a name="1.0.1"></a>
|
|
90
|
-
## [1.0.1](https://github.com/mmpro/fileExtensions/compare/v1.0.0...v1.0.1) (2018-06-15 10:09)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
### Bug Fixes
|
|
94
|
-
|
|
95
|
-
* **Misc:** Minor fix | MP ([216bfc5](https://github.com/mmpro/fileExtensions/commit/216bfc5))
|
|
96
|
-
Layout fix - used to force a minor version change.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<a name="1.0.0"></a>
|
|
101
|
-
# 1.0.0 (2018-06-15 10:05)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
### Bug Fixes
|
|
105
|
-
|
|
106
|
-
* **FileExtensions:** Updated file extensions | FT ([aa1bb6f](https://github.com/mmpro/fileExtensions/commit/aa1bb6f))
|
|
107
|
-
Added key (keynotes), pages (pages) and rw2 (Panasonic Raw)
|
|
28
|
+
## [1.2.1](https://github.com/mmpro/ac-file-extensions/compare/v1.2.0..v1.2.1) (2021-10-09 10:04:37)
|
|
108
29
|
|
|
109
30
|
|
|
31
|
+
### Bug Fix
|
|
110
32
|
|
|
33
|
+
* **App:** Package updates | MP | [d042d418bbff2fe14e61972a4cdd0c05ba73cef0](https://github.com/mmpro/ac-file-extensions/commit/d042d418bbff2fe14e61972a4cdd0c05ba73cef0)
|
|
34
|
+
Package updates
|
package/README.md
CHANGED
|
@@ -5,21 +5,31 @@ Use it to determine mimetype from extenstion, a prettyfied name or vice versa.
|
|
|
5
5
|
|
|
6
6
|
Currently support more than 300 file types.
|
|
7
7
|
|
|
8
|
+
# BREAKING CHANGES Version 2
|
|
9
|
+
If you upgrade to version 2, please note that there a breaking changes. While version 1 only provided a list of file extensions, version 2 can be used to easily query extensions.
|
|
10
|
+
|
|
8
11
|
# Installation
|
|
9
12
|
Use yarn add ac-file-extensions or npm install ac-file-extensions.
|
|
10
13
|
|
|
11
|
-
After installation this package will automatically create the
|
|
14
|
+
After installation this package will automatically create the collection.js file from sources.
|
|
12
15
|
|
|
13
16
|
# Usage
|
|
14
17
|
```
|
|
15
18
|
const fileExtensions = require('ac-file-extensions')
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
// search from mp4
|
|
21
|
+
const result = fileExtensions.query({ ext: 'mp4' })
|
|
19
22
|
console.log(result)
|
|
20
23
|
// { "ext": "mp4", "name": "MPEG-4 Video", "mimetype": "video/mp4" }
|
|
24
|
+
|
|
25
|
+
// retrieve the whole list
|
|
26
|
+
fileExtensions.list()
|
|
21
27
|
```
|
|
22
28
|
|
|
29
|
+
You can use query with parameter:
|
|
30
|
+
+ ext -> will return an object for this extension
|
|
31
|
+
+ mimeType -> will return an array of objects matching this mimetype
|
|
32
|
+
|
|
23
33
|
# Contribution
|
|
24
34
|
If you want to add a new file extension, choose the right folder and add it like the other file extension. Use pull requests to send updates.
|
|
25
35
|
|
|
@@ -27,10 +37,16 @@ To commit, add it with git-add (or any GUI) and then use "make commit" on the CL
|
|
|
27
37
|
|
|
28
38
|
Publishing to npm must be done manually.
|
|
29
39
|
|
|
40
|
+
# ac-file-extensions vs file-extensions
|
|
41
|
+
Please note, that this package is the successor of file-extensions. That's why it starts with version 1.2.0.
|
|
42
|
+
|
|
43
|
+
Please do not use package file-extensions any longer.
|
|
44
|
+
|
|
45
|
+
|
|
30
46
|
## Links
|
|
31
47
|
- [Website](https://www.admiralcloud.com/)
|
|
32
48
|
- [Twitter (@admiralcloud)](https://twitter.com/admiralcloud)
|
|
33
49
|
- [Facebook](https://www.facebook.com/MediaAssetManagement/)
|
|
34
50
|
|
|
35
51
|
## License
|
|
36
|
-
[MIT License](https://opensource.org/licenses/MIT) Copyright © 2009-present, AdmiralCloud, Mark Poepping
|
|
52
|
+
[MIT License](https://opensource.org/licenses/MIT) Copyright © 2009-present, AdmiralCloud AG, Mark Poepping
|
package/createFile.js
CHANGED