file-type 8.0.0 → 8.1.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/index.js +14 -0
- package/package.json +1 -1
- package/readme.md +2 -0
package/index.js
CHANGED
|
@@ -468,6 +468,13 @@ module.exports = input => {
|
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
+
if (check([0x4D, 0x41, 0x43, 0x20])) {
|
|
472
|
+
return {
|
|
473
|
+
ext: 'ape',
|
|
474
|
+
mime: 'audio/ape'
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
|
|
471
478
|
if (check([0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A])) {
|
|
472
479
|
return {
|
|
473
480
|
ext: 'amr',
|
|
@@ -791,5 +798,12 @@ module.exports = input => {
|
|
|
791
798
|
}
|
|
792
799
|
}
|
|
793
800
|
|
|
801
|
+
if (check([0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A])) {
|
|
802
|
+
return {
|
|
803
|
+
ext: 'ktx',
|
|
804
|
+
mime: 'image/ktx'
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
|
|
794
808
|
return null;
|
|
795
809
|
};
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -162,6 +162,8 @@ It only needs the first 4100 bytes.
|
|
|
162
162
|
- [`xml`](https://en.wikipedia.org/wiki/XML)
|
|
163
163
|
- [`heic`](http://nokiatech.github.io/heif/technical.html)
|
|
164
164
|
- [`cur`](https://en.wikipedia.org/wiki/ICO_(file_format))
|
|
165
|
+
- [`ktx`](https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/)
|
|
166
|
+
- [`ape`](https://en.wikipedia.org/wiki/Monkey%27s_Audio) - Monkey's Audio
|
|
165
167
|
|
|
166
168
|
*SVG isn't included as it requires the whole file to be read, but you can get it [here](https://github.com/sindresorhus/is-svg).*
|
|
167
169
|
|