file-type 5.1.1 → 5.2.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.
Files changed (3) hide show
  1. package/index.js +7 -0
  2. package/package.json +3 -2
  3. package/readme.md +1 -0
package/index.js CHANGED
@@ -548,5 +548,12 @@ module.exports = input => {
548
548
  };
549
549
  }
550
550
 
551
+ if (check([0x42, 0x50, 0x47, 0xFB])) {
552
+ return {
553
+ ext: 'bpg',
554
+ mime: 'image/bpg'
555
+ };
556
+ }
557
+
551
558
  return null;
552
559
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "file-type",
3
- "version": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "description": "Detect the file type of a Buffer/Uint8Array",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/file-type",
@@ -98,7 +98,8 @@
98
98
  "mts",
99
99
  "wasm",
100
100
  "webassembly",
101
- "blend"
101
+ "blend",
102
+ "bpg"
102
103
  ],
103
104
  "devDependencies": {
104
105
  "ava": "*",
package/readme.md CHANGED
@@ -139,6 +139,7 @@ It only needs the first 4100 bytes.
139
139
  - [`mts`](https://en.wikipedia.org/wiki/.m2ts)
140
140
  - [`wasm`](https://en.wikipedia.org/wiki/WebAssembly)
141
141
  - [`blend`](https://wiki.blender.org/index.php/Dev:Source/Architecture/File_Format)
142
+ - [`bpg`](https://bellard.org/bpg/)
142
143
 
143
144
  *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).*
144
145