@dropthis/cli 0.1.5

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 (236) hide show
  1. package/README.md +171 -0
  2. package/dist/cli.cjs +1489 -0
  3. package/dist/cli.cjs.map +1 -0
  4. package/node_modules/@dropthis/node/README.md +90 -0
  5. package/node_modules/@dropthis/node/dist/index.cjs +1010 -0
  6. package/node_modules/@dropthis/node/dist/index.cjs.map +1 -0
  7. package/node_modules/@dropthis/node/dist/index.d.cts +408 -0
  8. package/node_modules/@dropthis/node/dist/index.d.ts +408 -0
  9. package/node_modules/@dropthis/node/dist/index.mjs +969 -0
  10. package/node_modules/@dropthis/node/dist/index.mjs.map +1 -0
  11. package/node_modules/@dropthis/node/package.json +55 -0
  12. package/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  13. package/node_modules/@nodelib/fs.scandir/README.md +171 -0
  14. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  15. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  16. package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  17. package/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  18. package/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  19. package/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  20. package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  21. package/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  22. package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  23. package/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  24. package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  25. package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  26. package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  27. package/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  28. package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  29. package/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  30. package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  31. package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  32. package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  33. package/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  34. package/node_modules/@nodelib/fs.scandir/package.json +44 -0
  35. package/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  36. package/node_modules/@nodelib/fs.stat/README.md +126 -0
  37. package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  38. package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  39. package/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  40. package/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  41. package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  42. package/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  43. package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  44. package/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  45. package/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  46. package/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  47. package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  48. package/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  49. package/node_modules/@nodelib/fs.stat/package.json +37 -0
  50. package/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  51. package/node_modules/@nodelib/fs.walk/README.md +215 -0
  52. package/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  53. package/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  54. package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  55. package/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  56. package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  57. package/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  58. package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  59. package/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  60. package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  61. package/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  62. package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  63. package/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  64. package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  65. package/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  66. package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  67. package/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  68. package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  69. package/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  70. package/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  71. package/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  72. package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  73. package/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  74. package/node_modules/@nodelib/fs.walk/package.json +44 -0
  75. package/node_modules/braces/LICENSE +21 -0
  76. package/node_modules/braces/README.md +586 -0
  77. package/node_modules/braces/index.js +170 -0
  78. package/node_modules/braces/lib/compile.js +60 -0
  79. package/node_modules/braces/lib/constants.js +57 -0
  80. package/node_modules/braces/lib/expand.js +113 -0
  81. package/node_modules/braces/lib/parse.js +331 -0
  82. package/node_modules/braces/lib/stringify.js +32 -0
  83. package/node_modules/braces/lib/utils.js +122 -0
  84. package/node_modules/braces/package.json +77 -0
  85. package/node_modules/fast-glob/LICENSE +21 -0
  86. package/node_modules/fast-glob/README.md +830 -0
  87. package/node_modules/fast-glob/out/index.d.ts +40 -0
  88. package/node_modules/fast-glob/out/index.js +102 -0
  89. package/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
  90. package/node_modules/fast-glob/out/managers/tasks.js +110 -0
  91. package/node_modules/fast-glob/out/providers/async.d.ts +9 -0
  92. package/node_modules/fast-glob/out/providers/async.js +23 -0
  93. package/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
  94. package/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
  95. package/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
  96. package/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
  97. package/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
  98. package/node_modules/fast-glob/out/providers/filters/error.js +15 -0
  99. package/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
  100. package/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
  101. package/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
  102. package/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
  103. package/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
  104. package/node_modules/fast-glob/out/providers/provider.js +48 -0
  105. package/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
  106. package/node_modules/fast-glob/out/providers/stream.js +31 -0
  107. package/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
  108. package/node_modules/fast-glob/out/providers/sync.js +23 -0
  109. package/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
  110. package/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
  111. package/node_modules/fast-glob/out/readers/async.d.ts +10 -0
  112. package/node_modules/fast-glob/out/readers/async.js +35 -0
  113. package/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
  114. package/node_modules/fast-glob/out/readers/reader.js +33 -0
  115. package/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
  116. package/node_modules/fast-glob/out/readers/stream.js +55 -0
  117. package/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
  118. package/node_modules/fast-glob/out/readers/sync.js +43 -0
  119. package/node_modules/fast-glob/out/settings.d.ts +164 -0
  120. package/node_modules/fast-glob/out/settings.js +59 -0
  121. package/node_modules/fast-glob/out/types/index.d.ts +31 -0
  122. package/node_modules/fast-glob/out/types/index.js +2 -0
  123. package/node_modules/fast-glob/out/utils/array.d.ts +2 -0
  124. package/node_modules/fast-glob/out/utils/array.js +22 -0
  125. package/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
  126. package/node_modules/fast-glob/out/utils/errno.js +7 -0
  127. package/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
  128. package/node_modules/fast-glob/out/utils/fs.js +19 -0
  129. package/node_modules/fast-glob/out/utils/index.d.ts +8 -0
  130. package/node_modules/fast-glob/out/utils/index.js +17 -0
  131. package/node_modules/fast-glob/out/utils/path.d.ts +13 -0
  132. package/node_modules/fast-glob/out/utils/path.js +68 -0
  133. package/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
  134. package/node_modules/fast-glob/out/utils/pattern.js +206 -0
  135. package/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
  136. package/node_modules/fast-glob/out/utils/stream.js +17 -0
  137. package/node_modules/fast-glob/out/utils/string.d.ts +2 -0
  138. package/node_modules/fast-glob/out/utils/string.js +11 -0
  139. package/node_modules/fast-glob/package.json +81 -0
  140. package/node_modules/fastq/LICENSE +13 -0
  141. package/node_modules/fastq/README.md +310 -0
  142. package/node_modules/fastq/SECURITY.md +15 -0
  143. package/node_modules/fastq/bench.js +66 -0
  144. package/node_modules/fastq/eslint.config.js +11 -0
  145. package/node_modules/fastq/example.js +14 -0
  146. package/node_modules/fastq/example.mjs +9 -0
  147. package/node_modules/fastq/index.d.ts +59 -0
  148. package/node_modules/fastq/package.json +49 -0
  149. package/node_modules/fastq/queue.js +346 -0
  150. package/node_modules/fastq/test/example.ts +83 -0
  151. package/node_modules/fastq/test/promise.js +325 -0
  152. package/node_modules/fastq/test/test.js +733 -0
  153. package/node_modules/fastq/test/tsconfig.json +11 -0
  154. package/node_modules/fill-range/LICENSE +21 -0
  155. package/node_modules/fill-range/README.md +237 -0
  156. package/node_modules/fill-range/index.js +248 -0
  157. package/node_modules/fill-range/package.json +74 -0
  158. package/node_modules/glob-parent/LICENSE +15 -0
  159. package/node_modules/glob-parent/README.md +137 -0
  160. package/node_modules/glob-parent/index.js +42 -0
  161. package/node_modules/glob-parent/package.json +48 -0
  162. package/node_modules/ignore/LICENSE-MIT +21 -0
  163. package/node_modules/ignore/README.md +452 -0
  164. package/node_modules/ignore/index.d.ts +81 -0
  165. package/node_modules/ignore/index.js +784 -0
  166. package/node_modules/ignore/legacy.js +681 -0
  167. package/node_modules/ignore/package.json +87 -0
  168. package/node_modules/is-extglob/LICENSE +21 -0
  169. package/node_modules/is-extglob/README.md +107 -0
  170. package/node_modules/is-extglob/index.js +20 -0
  171. package/node_modules/is-extglob/package.json +69 -0
  172. package/node_modules/is-glob/LICENSE +21 -0
  173. package/node_modules/is-glob/README.md +206 -0
  174. package/node_modules/is-glob/index.js +150 -0
  175. package/node_modules/is-glob/package.json +81 -0
  176. package/node_modules/is-number/LICENSE +21 -0
  177. package/node_modules/is-number/README.md +187 -0
  178. package/node_modules/is-number/index.js +18 -0
  179. package/node_modules/is-number/package.json +82 -0
  180. package/node_modules/merge2/LICENSE +21 -0
  181. package/node_modules/merge2/README.md +144 -0
  182. package/node_modules/merge2/index.js +144 -0
  183. package/node_modules/merge2/package.json +43 -0
  184. package/node_modules/micromatch/LICENSE +21 -0
  185. package/node_modules/micromatch/README.md +1024 -0
  186. package/node_modules/micromatch/index.js +474 -0
  187. package/node_modules/micromatch/package.json +119 -0
  188. package/node_modules/mime-db/HISTORY.md +541 -0
  189. package/node_modules/mime-db/LICENSE +23 -0
  190. package/node_modules/mime-db/README.md +109 -0
  191. package/node_modules/mime-db/db.json +9342 -0
  192. package/node_modules/mime-db/index.js +12 -0
  193. package/node_modules/mime-db/package.json +56 -0
  194. package/node_modules/mime-types/HISTORY.md +421 -0
  195. package/node_modules/mime-types/LICENSE +23 -0
  196. package/node_modules/mime-types/README.md +126 -0
  197. package/node_modules/mime-types/index.js +211 -0
  198. package/node_modules/mime-types/mimeScore.js +52 -0
  199. package/node_modules/mime-types/package.json +45 -0
  200. package/node_modules/picomatch/LICENSE +21 -0
  201. package/node_modules/picomatch/README.md +716 -0
  202. package/node_modules/picomatch/index.js +3 -0
  203. package/node_modules/picomatch/lib/constants.js +184 -0
  204. package/node_modules/picomatch/lib/parse.js +1392 -0
  205. package/node_modules/picomatch/lib/picomatch.js +342 -0
  206. package/node_modules/picomatch/lib/scan.js +391 -0
  207. package/node_modules/picomatch/lib/utils.js +64 -0
  208. package/node_modules/picomatch/package.json +81 -0
  209. package/node_modules/queue-microtask/LICENSE +20 -0
  210. package/node_modules/queue-microtask/README.md +90 -0
  211. package/node_modules/queue-microtask/index.d.ts +2 -0
  212. package/node_modules/queue-microtask/index.js +9 -0
  213. package/node_modules/queue-microtask/package.json +55 -0
  214. package/node_modules/reusify/.github/dependabot.yml +7 -0
  215. package/node_modules/reusify/.github/workflows/ci.yml +96 -0
  216. package/node_modules/reusify/LICENSE +22 -0
  217. package/node_modules/reusify/README.md +139 -0
  218. package/node_modules/reusify/SECURITY.md +15 -0
  219. package/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
  220. package/node_modules/reusify/benchmarks/fib.js +13 -0
  221. package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
  222. package/node_modules/reusify/eslint.config.js +14 -0
  223. package/node_modules/reusify/package.json +50 -0
  224. package/node_modules/reusify/reusify.d.ts +14 -0
  225. package/node_modules/reusify/reusify.js +33 -0
  226. package/node_modules/reusify/test.js +66 -0
  227. package/node_modules/reusify/tsconfig.json +11 -0
  228. package/node_modules/run-parallel/LICENSE +20 -0
  229. package/node_modules/run-parallel/README.md +85 -0
  230. package/node_modules/run-parallel/index.js +51 -0
  231. package/node_modules/run-parallel/package.json +58 -0
  232. package/node_modules/to-regex-range/LICENSE +21 -0
  233. package/node_modules/to-regex-range/README.md +305 -0
  234. package/node_modules/to-regex-range/index.js +288 -0
  235. package/node_modules/to-regex-range/package.json +88 -0
  236. package/package.json +53 -0
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * mime-db
3
+ * Copyright(c) 2014 Jonathan Ong
4
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */
7
+
8
+ /**
9
+ * Module exports.
10
+ */
11
+
12
+ module.exports = require('./db.json')
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "mime-db",
3
+ "description": "Media Type Database",
4
+ "version": "1.54.0",
5
+ "contributors": [
6
+ "Douglas Christopher Wilson <doug@somethingdoug.com>",
7
+ "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
8
+ "Robert Kieffer <robert@broofa.com> (http://github.com/broofa)"
9
+ ],
10
+ "license": "MIT",
11
+ "keywords": [
12
+ "mime",
13
+ "db",
14
+ "type",
15
+ "types",
16
+ "database",
17
+ "charset",
18
+ "charsets"
19
+ ],
20
+ "repository": "jshttp/mime-db",
21
+ "devDependencies": {
22
+ "csv-parse": "4.16.3",
23
+ "eslint": "8.32.0",
24
+ "eslint-config-standard": "15.0.1",
25
+ "eslint-plugin-import": "2.27.5",
26
+ "eslint-plugin-markdown": "3.0.0",
27
+ "eslint-plugin-node": "11.1.0",
28
+ "eslint-plugin-promise": "6.1.1",
29
+ "eslint-plugin-standard": "4.1.0",
30
+ "media-typer": "1.1.0",
31
+ "mocha": "10.2.0",
32
+ "nyc": "15.1.0",
33
+ "stream-to-array": "2.3.0",
34
+ "undici": "7.1.0"
35
+ },
36
+ "files": [
37
+ "HISTORY.md",
38
+ "LICENSE",
39
+ "README.md",
40
+ "db.json",
41
+ "index.js"
42
+ ],
43
+ "engines": {
44
+ "node": ">= 0.6"
45
+ },
46
+ "scripts": {
47
+ "build": "node scripts/build",
48
+ "fetch": "node scripts/fetch-apache && node scripts/fetch-iana && node scripts/fetch-nginx",
49
+ "lint": "eslint .",
50
+ "test": "mocha --reporter spec --check-leaks test/",
51
+ "test-ci": "nyc --reporter=lcovonly --reporter=text npm test",
52
+ "test-cov": "nyc --reporter=html --reporter=text npm test",
53
+ "update": "npm run fetch && npm run build",
54
+ "version": "node scripts/version-history.js && git add HISTORY.md"
55
+ }
56
+ }
@@ -0,0 +1,421 @@
1
+ 3.0.1 / 2025-03-26
2
+ ===================
3
+
4
+ * deps: mime-db@1.54.0
5
+
6
+ 3.0.0 / 2024-08-31
7
+ ===================
8
+
9
+ * Drop support for node <18
10
+ * deps: mime-db@1.53.0
11
+ * resolve extension conflicts with mime-score (#119)
12
+ * asc -> application/pgp-signature is now application/pgp-keys
13
+ * mpp -> application/vnd.ms-project is now application/dash-patch+xml
14
+ * ac -> application/vnd.nokia.n-gage.ac+xml is now application/pkix-attr-cert
15
+ * bdoc -> application/x-bdoc is now application/bdoc
16
+ * wmz -> application/x-msmetafile is now application/x-ms-wmz
17
+ * xsl -> application/xslt+xml is now application/xml
18
+ * wav -> audio/wave is now audio/wav
19
+ * rtf -> text/rtf is now application/rtf
20
+ * xml -> text/xml is now application/xml
21
+ * mp4 -> video/mp4 is now application/mp4
22
+ * mpg4 -> video/mp4 is now application/mp4
23
+
24
+
25
+ 2.1.35 / 2022-03-12
26
+ ===================
27
+
28
+ * deps: mime-db@1.52.0
29
+ - Add extensions from IANA for more `image/*` types
30
+ - Add extension `.asc` to `application/pgp-keys`
31
+ - Add extensions to various XML types
32
+ - Add new upstream MIME types
33
+
34
+ 2.1.34 / 2021-11-08
35
+ ===================
36
+
37
+ * deps: mime-db@1.51.0
38
+ - Add new upstream MIME types
39
+
40
+ 2.1.33 / 2021-10-01
41
+ ===================
42
+
43
+ * deps: mime-db@1.50.0
44
+ - Add deprecated iWorks mime types and extensions
45
+ - Add new upstream MIME types
46
+
47
+ 2.1.32 / 2021-07-27
48
+ ===================
49
+
50
+ * deps: mime-db@1.49.0
51
+ - Add extension `.trig` to `application/trig`
52
+ - Add new upstream MIME types
53
+
54
+ 2.1.31 / 2021-06-01
55
+ ===================
56
+
57
+ * deps: mime-db@1.48.0
58
+ - Add extension `.mvt` to `application/vnd.mapbox-vector-tile`
59
+ - Add new upstream MIME types
60
+
61
+ 2.1.30 / 2021-04-02
62
+ ===================
63
+
64
+ * deps: mime-db@1.47.0
65
+ - Add extension `.amr` to `audio/amr`
66
+ - Remove ambigious extensions from IANA for `application/*+xml` types
67
+ - Update primary extension to `.es` for `application/ecmascript`
68
+
69
+ 2.1.29 / 2021-02-17
70
+ ===================
71
+
72
+ * deps: mime-db@1.46.0
73
+ - Add extension `.amr` to `audio/amr`
74
+ - Add extension `.m4s` to `video/iso.segment`
75
+ - Add extension `.opus` to `audio/ogg`
76
+ - Add new upstream MIME types
77
+
78
+ 2.1.28 / 2021-01-01
79
+ ===================
80
+
81
+ * deps: mime-db@1.45.0
82
+ - Add `application/ubjson` with extension `.ubj`
83
+ - Add `image/avif` with extension `.avif`
84
+ - Add `image/ktx2` with extension `.ktx2`
85
+ - Add extension `.dbf` to `application/vnd.dbf`
86
+ - Add extension `.rar` to `application/vnd.rar`
87
+ - Add extension `.td` to `application/urc-targetdesc+xml`
88
+ - Add new upstream MIME types
89
+ - Fix extension of `application/vnd.apple.keynote` to be `.key`
90
+
91
+ 2.1.27 / 2020-04-23
92
+ ===================
93
+
94
+ * deps: mime-db@1.44.0
95
+ - Add charsets from IANA
96
+ - Add extension `.cjs` to `application/node`
97
+ - Add new upstream MIME types
98
+
99
+ 2.1.26 / 2020-01-05
100
+ ===================
101
+
102
+ * deps: mime-db@1.43.0
103
+ - Add `application/x-keepass2` with extension `.kdbx`
104
+ - Add extension `.mxmf` to `audio/mobile-xmf`
105
+ - Add extensions from IANA for `application/*+xml` types
106
+ - Add new upstream MIME types
107
+
108
+ 2.1.25 / 2019-11-12
109
+ ===================
110
+
111
+ * deps: mime-db@1.42.0
112
+ - Add new upstream MIME types
113
+ - Add `application/toml` with extension `.toml`
114
+ - Add `image/vnd.ms-dds` with extension `.dds`
115
+
116
+ 2.1.24 / 2019-04-20
117
+ ===================
118
+
119
+ * deps: mime-db@1.40.0
120
+ - Add extensions from IANA for `model/*` types
121
+ - Add `text/mdx` with extension `.mdx`
122
+
123
+ 2.1.23 / 2019-04-17
124
+ ===================
125
+
126
+ * deps: mime-db@~1.39.0
127
+ - Add extensions `.siv` and `.sieve` to `application/sieve`
128
+ - Add new upstream MIME types
129
+
130
+ 2.1.22 / 2019-02-14
131
+ ===================
132
+
133
+ * deps: mime-db@~1.38.0
134
+ - Add extension `.nq` to `application/n-quads`
135
+ - Add extension `.nt` to `application/n-triples`
136
+ - Add new upstream MIME types
137
+
138
+ 2.1.21 / 2018-10-19
139
+ ===================
140
+
141
+ * deps: mime-db@~1.37.0
142
+ - Add extensions to HEIC image types
143
+ - Add new upstream MIME types
144
+
145
+ 2.1.20 / 2018-08-26
146
+ ===================
147
+
148
+ * deps: mime-db@~1.36.0
149
+ - Add Apple file extensions from IANA
150
+ - Add extensions from IANA for `image/*` types
151
+ - Add new upstream MIME types
152
+
153
+ 2.1.19 / 2018-07-17
154
+ ===================
155
+
156
+ * deps: mime-db@~1.35.0
157
+ - Add extension `.csl` to `application/vnd.citationstyles.style+xml`
158
+ - Add extension `.es` to `application/ecmascript`
159
+ - Add extension `.owl` to `application/rdf+xml`
160
+ - Add new upstream MIME types
161
+ - Add UTF-8 as default charset for `text/turtle`
162
+
163
+ 2.1.18 / 2018-02-16
164
+ ===================
165
+
166
+ * deps: mime-db@~1.33.0
167
+ - Add `application/raml+yaml` with extension `.raml`
168
+ - Add `application/wasm` with extension `.wasm`
169
+ - Add `text/shex` with extension `.shex`
170
+ - Add extensions for JPEG-2000 images
171
+ - Add extensions from IANA for `message/*` types
172
+ - Add new upstream MIME types
173
+ - Update font MIME types
174
+ - Update `text/hjson` to registered `application/hjson`
175
+
176
+ 2.1.17 / 2017-09-01
177
+ ===================
178
+
179
+ * deps: mime-db@~1.30.0
180
+ - Add `application/vnd.ms-outlook`
181
+ - Add `application/x-arj`
182
+ - Add extension `.mjs` to `application/javascript`
183
+ - Add glTF types and extensions
184
+ - Add new upstream MIME types
185
+ - Add `text/x-org`
186
+ - Add VirtualBox MIME types
187
+ - Fix `source` records for `video/*` types that are IANA
188
+ - Update `font/opentype` to registered `font/otf`
189
+
190
+ 2.1.16 / 2017-07-24
191
+ ===================
192
+
193
+ * deps: mime-db@~1.29.0
194
+ - Add `application/fido.trusted-apps+json`
195
+ - Add extension `.wadl` to `application/vnd.sun.wadl+xml`
196
+ - Add extension `.gz` to `application/gzip`
197
+ - Add new upstream MIME types
198
+ - Update extensions `.md` and `.markdown` to be `text/markdown`
199
+
200
+ 2.1.15 / 2017-03-23
201
+ ===================
202
+
203
+ * deps: mime-db@~1.27.0
204
+ - Add new mime types
205
+ - Add `image/apng`
206
+
207
+ 2.1.14 / 2017-01-14
208
+ ===================
209
+
210
+ * deps: mime-db@~1.26.0
211
+ - Add new mime types
212
+
213
+ 2.1.13 / 2016-11-18
214
+ ===================
215
+
216
+ * deps: mime-db@~1.25.0
217
+ - Add new mime types
218
+
219
+ 2.1.12 / 2016-09-18
220
+ ===================
221
+
222
+ * deps: mime-db@~1.24.0
223
+ - Add new mime types
224
+ - Add `audio/mp3`
225
+
226
+ 2.1.11 / 2016-05-01
227
+ ===================
228
+
229
+ * deps: mime-db@~1.23.0
230
+ - Add new mime types
231
+
232
+ 2.1.10 / 2016-02-15
233
+ ===================
234
+
235
+ * deps: mime-db@~1.22.0
236
+ - Add new mime types
237
+ - Fix extension of `application/dash+xml`
238
+ - Update primary extension for `audio/mp4`
239
+
240
+ 2.1.9 / 2016-01-06
241
+ ==================
242
+
243
+ * deps: mime-db@~1.21.0
244
+ - Add new mime types
245
+
246
+ 2.1.8 / 2015-11-30
247
+ ==================
248
+
249
+ * deps: mime-db@~1.20.0
250
+ - Add new mime types
251
+
252
+ 2.1.7 / 2015-09-20
253
+ ==================
254
+
255
+ * deps: mime-db@~1.19.0
256
+ - Add new mime types
257
+
258
+ 2.1.6 / 2015-09-03
259
+ ==================
260
+
261
+ * deps: mime-db@~1.18.0
262
+ - Add new mime types
263
+
264
+ 2.1.5 / 2015-08-20
265
+ ==================
266
+
267
+ * deps: mime-db@~1.17.0
268
+ - Add new mime types
269
+
270
+ 2.1.4 / 2015-07-30
271
+ ==================
272
+
273
+ * deps: mime-db@~1.16.0
274
+ - Add new mime types
275
+
276
+ 2.1.3 / 2015-07-13
277
+ ==================
278
+
279
+ * deps: mime-db@~1.15.0
280
+ - Add new mime types
281
+
282
+ 2.1.2 / 2015-06-25
283
+ ==================
284
+
285
+ * deps: mime-db@~1.14.0
286
+ - Add new mime types
287
+
288
+ 2.1.1 / 2015-06-08
289
+ ==================
290
+
291
+ * perf: fix deopt during mapping
292
+
293
+ 2.1.0 / 2015-06-07
294
+ ==================
295
+
296
+ * Fix incorrectly treating extension-less file name as extension
297
+ - i.e. `'path/to/json'` will no longer return `application/json`
298
+ * Fix `.charset(type)` to accept parameters
299
+ * Fix `.charset(type)` to match case-insensitive
300
+ * Improve generation of extension to MIME mapping
301
+ * Refactor internals for readability and no argument reassignment
302
+ * Prefer `application/*` MIME types from the same source
303
+ * Prefer any type over `application/octet-stream`
304
+ * deps: mime-db@~1.13.0
305
+ - Add nginx as a source
306
+ - Add new mime types
307
+
308
+ 2.0.14 / 2015-06-06
309
+ ===================
310
+
311
+ * deps: mime-db@~1.12.0
312
+ - Add new mime types
313
+
314
+ 2.0.13 / 2015-05-31
315
+ ===================
316
+
317
+ * deps: mime-db@~1.11.0
318
+ - Add new mime types
319
+
320
+ 2.0.12 / 2015-05-19
321
+ ===================
322
+
323
+ * deps: mime-db@~1.10.0
324
+ - Add new mime types
325
+
326
+ 2.0.11 / 2015-05-05
327
+ ===================
328
+
329
+ * deps: mime-db@~1.9.1
330
+ - Add new mime types
331
+
332
+ 2.0.10 / 2015-03-13
333
+ ===================
334
+
335
+ * deps: mime-db@~1.8.0
336
+ - Add new mime types
337
+
338
+ 2.0.9 / 2015-02-09
339
+ ==================
340
+
341
+ * deps: mime-db@~1.7.0
342
+ - Add new mime types
343
+ - Community extensions ownership transferred from `node-mime`
344
+
345
+ 2.0.8 / 2015-01-29
346
+ ==================
347
+
348
+ * deps: mime-db@~1.6.0
349
+ - Add new mime types
350
+
351
+ 2.0.7 / 2014-12-30
352
+ ==================
353
+
354
+ * deps: mime-db@~1.5.0
355
+ - Add new mime types
356
+ - Fix various invalid MIME type entries
357
+
358
+ 2.0.6 / 2014-12-30
359
+ ==================
360
+
361
+ * deps: mime-db@~1.4.0
362
+ - Add new mime types
363
+ - Fix various invalid MIME type entries
364
+ - Remove example template MIME types
365
+
366
+ 2.0.5 / 2014-12-29
367
+ ==================
368
+
369
+ * deps: mime-db@~1.3.1
370
+ - Fix missing extensions
371
+
372
+ 2.0.4 / 2014-12-10
373
+ ==================
374
+
375
+ * deps: mime-db@~1.3.0
376
+ - Add new mime types
377
+
378
+ 2.0.3 / 2014-11-09
379
+ ==================
380
+
381
+ * deps: mime-db@~1.2.0
382
+ - Add new mime types
383
+
384
+ 2.0.2 / 2014-09-28
385
+ ==================
386
+
387
+ * deps: mime-db@~1.1.0
388
+ - Add new mime types
389
+ - Update charsets
390
+
391
+ 2.0.1 / 2014-09-07
392
+ ==================
393
+
394
+ * Support Node.js 0.6
395
+
396
+ 2.0.0 / 2014-09-02
397
+ ==================
398
+
399
+ * Use `mime-db`
400
+ * Remove `.define()`
401
+
402
+ 1.0.2 / 2014-08-04
403
+ ==================
404
+
405
+ * Set charset=utf-8 for `text/javascript`
406
+
407
+ 1.0.1 / 2014-06-24
408
+ ==================
409
+
410
+ * Add `text/jsx` type
411
+
412
+ 1.0.0 / 2014-05-12
413
+ ==================
414
+
415
+ * Return `false` for unknown types
416
+ * Set charset=utf-8 for `application/json`
417
+
418
+ 0.1.0 / 2014-05-02
419
+ ==================
420
+
421
+ * Initial release
@@ -0,0 +1,23 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
4
+ Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ 'Software'), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,126 @@
1
+ # mime-types
2
+
3
+ [![NPM Version][npm-version-image]][npm-url]
4
+ [![NPM Downloads][npm-downloads-image]][npm-url]
5
+ [![Node.js Version][node-version-image]][node-version-url]
6
+ [![Build Status][ci-image]][ci-url]
7
+ [![Test Coverage][coveralls-image]][coveralls-url]
8
+
9
+ The ultimate javascript content-type utility.
10
+
11
+ Similar to [the `mime@1.x` module](https://www.npmjs.com/package/mime), except:
12
+
13
+ - __No fallbacks.__ Instead of naively returning the first available type,
14
+ `mime-types` simply returns `false`, so do
15
+ `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.
16
+ - No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`.
17
+ - No `.define()` functionality
18
+ - Bug fixes for `.lookup(path)`
19
+
20
+ Otherwise, the API is compatible with `mime` 1.x.
21
+
22
+ ## Install
23
+
24
+ This is a [Node.js](https://nodejs.org/en/) module available through the
25
+ [npm registry](https://www.npmjs.com/). Installation is done using the
26
+ [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
27
+
28
+ ```sh
29
+ $ npm install mime-types
30
+ ```
31
+
32
+ ## Note on MIME Type Data and Semver
33
+
34
+ This package considers the programmatic api as the semver compatibility. Additionally, the package which provides the MIME data
35
+ for this package (`mime-db`) *also* considers it's programmatic api as the semver contract. This means the MIME type resolution is *not* considered
36
+ in the semver bumps.
37
+
38
+ In the past the version of `mime-db` was pinned to give two decision points when adopting MIME data changes. This is no longer true. We still update the
39
+ `mime-db` package here as a `minor` release when necessary, but will use a `^` range going forward. This means that if you want to pin your `mime-db` data
40
+ you will need to do it in your application. While this expectation was not set in docs until now, it is how the pacakge operated, so we do not feel this is
41
+ a breaking change.
42
+
43
+ If you wish to pin your `mime-db` version you can do that with overrides via your package manager of choice. See their documentation for how to correctly configure that.
44
+
45
+ ## Adding Types
46
+
47
+ All mime types are based on [mime-db](https://www.npmjs.com/package/mime-db),
48
+ so open a PR there if you'd like to add mime types.
49
+
50
+ ## API
51
+
52
+ ```js
53
+ var mime = require('mime-types')
54
+ ```
55
+
56
+ All functions return `false` if input is invalid or not found.
57
+
58
+ ### mime.lookup(path)
59
+
60
+ Lookup the content-type associated with a file.
61
+
62
+ ```js
63
+ mime.lookup('json') // 'application/json'
64
+ mime.lookup('.md') // 'text/markdown'
65
+ mime.lookup('file.html') // 'text/html'
66
+ mime.lookup('folder/file.js') // 'application/javascript'
67
+ mime.lookup('folder/.htaccess') // false
68
+
69
+ mime.lookup('cats') // false
70
+ ```
71
+
72
+ ### mime.contentType(type)
73
+
74
+ Create a full content-type header given a content-type or extension.
75
+ When given an extension, `mime.lookup` is used to get the matching
76
+ content-type, otherwise the given content-type is used. Then if the
77
+ content-type does not already have a `charset` parameter, `mime.charset`
78
+ is used to get the default charset and add to the returned content-type.
79
+
80
+ ```js
81
+ mime.contentType('markdown') // 'text/x-markdown; charset=utf-8'
82
+ mime.contentType('file.json') // 'application/json; charset=utf-8'
83
+ mime.contentType('text/html') // 'text/html; charset=utf-8'
84
+ mime.contentType('text/html; charset=iso-8859-1') // 'text/html; charset=iso-8859-1'
85
+
86
+ // from a full path
87
+ mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8'
88
+ ```
89
+
90
+ ### mime.extension(type)
91
+
92
+ Get the default extension for a content-type.
93
+
94
+ ```js
95
+ mime.extension('application/octet-stream') // 'bin'
96
+ ```
97
+
98
+ ### mime.charset(type)
99
+
100
+ Lookup the implied default charset of a content-type.
101
+
102
+ ```js
103
+ mime.charset('text/markdown') // 'UTF-8'
104
+ ```
105
+
106
+ ### var type = mime.types[extension]
107
+
108
+ A map of content-types by extension.
109
+
110
+ ### [extensions...] = mime.extensions[type]
111
+
112
+ A map of extensions by content-type.
113
+
114
+ ## License
115
+
116
+ [MIT](LICENSE)
117
+
118
+ [ci-image]: https://badgen.net/github/checks/jshttp/mime-types/master?label=ci
119
+ [ci-url]: https://github.com/jshttp/mime-types/actions/workflows/ci.yml
120
+ [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-types/master
121
+ [coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master
122
+ [node-version-image]: https://badgen.net/npm/node/mime-types
123
+ [node-version-url]: https://nodejs.org/en/download
124
+ [npm-downloads-image]: https://badgen.net/npm/dm/mime-types
125
+ [npm-url]: https://npmjs.org/package/mime-types
126
+ [npm-version-image]: https://badgen.net/npm/v/mime-types