package.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. {
  2. "title": "Is Text or Binary?",
  3. "name": "istextorbinary",
  4. "version": "3.3.0",
  5. "description": "Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.",
  6. "homepage": "https://github.com/bevry/istextorbinary",
  7. "license": "MIT",
  8. "keywords": [
  9. "bin",
  10. "binary",
  11. "check",
  12. "detect",
  13. "encoding",
  14. "ext",
  15. "extension",
  16. "extensions",
  17. "file",
  18. "is binary file",
  19. "is binary",
  20. "is text file",
  21. "is text or binary file",
  22. "is text or binary",
  23. "is text",
  24. "is",
  25. "isbinary",
  26. "isbinaryfile",
  27. "istext",
  28. "istextfile",
  29. "path",
  30. "text"
  31. ],
  32. "badges": {
  33. "list": [
  34. "travisci",
  35. "npmversion",
  36. "npmdownloads",
  37. "daviddm",
  38. "daviddmdev",
  39. "---",
  40. "githubsponsors",
  41. "patreon",
  42. "flattr",
  43. "liberapay",
  44. "buymeacoffee",
  45. "opencollective",
  46. "crypto",
  47. "paypal",
  48. "wishlist"
  49. ],
  50. "config": {
  51. "githubSponsorsUsername": "balupton",
  52. "buymeacoffeeUsername": "balupton",
  53. "cryptoURL": "https://bevry.me/crypto",
  54. "flattrUsername": "balupton",
  55. "liberapayUsername": "bevry",
  56. "opencollectiveUsername": "bevry",
  57. "patreonUsername": "bevry",
  58. "paypalURL": "https://bevry.me/paypal",
  59. "wishlistURL": "https://bevry.me/wishlist",
  60. "travisTLD": "com"
  61. }
  62. },
  63. "funding": "https://bevry.me/fund",
  64. "author": "2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011 Benjamin Lupton <b@lupton.cc> (http://balupton.com)",
  65. "maintainers": [
  66. "Benjamin Lupton <b@lupton.cc> (http://balupton.com)",
  67. "Rob Loach <robloach@gmail.com> (https://github.com/robloach)",
  68. "Michael Mooring <mike@mdm.cc> (https://github.com/mikeumus)"
  69. ],
  70. "contributors": [
  71. "Benjamin Lupton <b@lupton.cc> (http://balupton.com)",
  72. "Shinnosuke Watanabe <snnskwtnb@gmail.com> (http://shinnn.github.io)",
  73. "Ian Sibner <sibnerian@gmail.com> (http://www.sibnerian.com/)",
  74. "Sean <sean@albinodrought.com> (http://albinodrought.com/)",
  75. "dependabot[bot] (http://github.com/apps/dependabot)",
  76. "shinnn (http://qiita.com/shinnn)",
  77. "dependabot-preview[bot] (http://github.com/apps/dependabot-preview)"
  78. ],
  79. "bugs": {
  80. "url": "https://github.com/bevry/istextorbinary/issues"
  81. },
  82. "repository": {
  83. "type": "git",
  84. "url": "https://github.com/bevry/istextorbinary.git"
  85. },
  86. "engines": {
  87. "node": ">=8"
  88. },
  89. "editions": [
  90. {
  91. "description": "esnext source code with require for modules",
  92. "directory": "source",
  93. "entry": "index.js",
  94. "tags": [
  95. "javascript",
  96. "esnext",
  97. "require"
  98. ],
  99. "engines": {
  100. "node": "8 || 10 || 12",
  101. "browsers": false
  102. }
  103. },
  104. {
  105. "description": "esnext compiled for browsers with require for modules",
  106. "directory": "edition-browsers",
  107. "entry": "index.js",
  108. "tags": [
  109. "javascript",
  110. "require"
  111. ],
  112. "engines": {
  113. "node": false,
  114. "browsers": "defaults"
  115. }
  116. }
  117. ],
  118. "type": "commonjs",
  119. "main": "source/index.js",
  120. "browser": "edition-browsers/index.js",
  121. "dependencies": {
  122. "binaryextensions": "^2.2.0",
  123. "textextensions": "^3.2.0"
  124. },
  125. "devDependencies": {
  126. "@babel/cli": "^7.7.5",
  127. "@babel/core": "^7.7.5",
  128. "@babel/plugin-proposal-object-rest-spread": "^7.7.4",
  129. "@babel/preset-env": "^7.7.6",
  130. "assert-helpers": "^5.8.0",
  131. "eslint": "^6.7.2",
  132. "eslint-config-bevry": "^2.3.0",
  133. "eslint-config-prettier": "^6.7.0",
  134. "eslint-plugin-prettier": "^3.1.1",
  135. "jsdoc": "^3.6.3",
  136. "kava": "^4.3.0",
  137. "minami": "^1.2.3",
  138. "prettier": "^1.19.1",
  139. "projectz": "^1.15.0",
  140. "surge": "^0.21.3",
  141. "valid-directory": "^1.5.0"
  142. },
  143. "scripts": {
  144. "our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
  145. "our:compile": "npm run our:compile:edition-browsers",
  146. "our:compile:edition-browsers": "env BABEL_ENV=edition-browsers babel --out-dir ./edition-browsers ./source",
  147. "our:deploy": "echo no need for this project",
  148. "our:meta": "npm run our:meta:docs && npm run our:meta:projectz",
  149. "our:meta:docs": "npm run our:meta:docs:jsdoc",
  150. "our:meta:docs:jsdoc": "rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version",
  151. "our:meta:projectz": "projectz compile",
  152. "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",
  153. "our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)",
  154. "our:release:check-dirty": "git diff --exit-code",
  155. "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
  156. "our:release:push": "git push origin master && git push origin --tags",
  157. "our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"",
  158. "our:setup": "npm run our:setup:install",
  159. "our:setup:install": "npm install",
  160. "our:test": "npm run our:verify && npm test",
  161. "our:verify": "npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier",
  162. "our:verify:directory": "npx valid-directory",
  163. "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
  164. "our:verify:prettier": "prettier --write ./source/**",
  165. "test": "node ./source/test.js"
  166. },
  167. "eslintConfig": {
  168. "extends": [
  169. "bevry"
  170. ]
  171. },
  172. "prettier": {
  173. "semi": false,
  174. "singleQuote": true
  175. },
  176. "babel": {
  177. "env": {
  178. "edition-browsers": {
  179. "sourceType": "script",
  180. "presets": [
  181. [
  182. "@babel/preset-env",
  183. {
  184. "targets": "defaults",
  185. "modules": false
  186. }
  187. ]
  188. ],
  189. "plugins": [
  190. "@babel/proposal-object-rest-spread"
  191. ]
  192. }
  193. }
  194. }
  195. }