Skip to content

Commit f9b2c69

Browse files
committed
Add new GRIB and BUFR media types
1 parent bfe69d0 commit f9b2c69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

formatters.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ const Formatters = {
117117
case 'application/x.mrf':
118118
return short ? 'MRF' : 'Meta Raster Format';
119119
case 'application/wmo-GRIB2':
120-
return 'GRIB2';
120+
return 'GRIB 2';
121+
case 'application/grib':
122+
return `GRIB ${media.parameters.edition || ""}`.trim();
123+
case 'application/bufr':
124+
return `BUFR ${media.parameters.edition || ""}`.trim();
121125
case 'application/octet-stream':
122126
return short ? 'Binary' : 'Binary file';
123127
case 'application/vnd.laszip':

0 commit comments

Comments
 (0)