package.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. {
  2. "name": "mathjs",
  3. "version": "11.5.1",
  4. "description": "Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.",
  5. "author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
  6. "homepage": "https://mathjs.org",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/josdejong/mathjs.git"
  10. },
  11. "license": "Apache-2.0",
  12. "keywords": [
  13. "math",
  14. "mathematics",
  15. "functions",
  16. "numeric",
  17. "algebra",
  18. "parser",
  19. "expression",
  20. "number",
  21. "bignumber",
  22. "complex",
  23. "fraction",
  24. "matrix",
  25. "unit"
  26. ],
  27. "dependencies": {
  28. "@babel/runtime": "^7.20.13",
  29. "complex.js": "^2.1.1",
  30. "decimal.js": "^10.4.3",
  31. "escape-latex": "^1.2.0",
  32. "fraction.js": "^4.2.0",
  33. "javascript-natural-sort": "^0.7.1",
  34. "seedrandom": "^3.0.5",
  35. "tiny-emitter": "^2.1.0",
  36. "typed-function": "^4.1.0"
  37. },
  38. "devDependencies": {
  39. "@babel/core": "7.20.12",
  40. "@babel/plugin-transform-object-assign": "7.18.6",
  41. "@babel/plugin-transform-runtime": "7.19.6",
  42. "@babel/preset-env": "7.20.2",
  43. "@babel/register": "7.18.9",
  44. "@types/assert": "1.5.6",
  45. "@types/mocha": "10.0.1",
  46. "@typescript-eslint/eslint-plugin": "5.50.0",
  47. "@typescript-eslint/parser": "5.50.0",
  48. "assert": "2.0.0",
  49. "babel-loader": "9.1.2",
  50. "benchmark": "2.1.4",
  51. "c8": "7.12.0",
  52. "codecov": "3.8.3",
  53. "core-js": "3.27.2",
  54. "del": "6.1.1",
  55. "dtslint": "4.2.1",
  56. "eslint": "8.33.0",
  57. "eslint-config-prettier": "8.6.0",
  58. "eslint-config-standard": "17.0.0",
  59. "eslint-plugin-import": "2.27.5",
  60. "eslint-plugin-mocha": "10.1.0",
  61. "eslint-plugin-n": "15.6.1",
  62. "eslint-plugin-prettier": "4.2.1",
  63. "eslint-plugin-promise": "6.1.1",
  64. "expect-type": "0.15.0",
  65. "expr-eval": "2.0.2",
  66. "fancy-log": "2.0.0",
  67. "glob": "8.1.0",
  68. "gulp": "4.0.2",
  69. "gulp-babel": "8.0.0",
  70. "handlebars": "4.7.7",
  71. "jsep": "1.3.8",
  72. "karma": "6.4.1",
  73. "karma-browserstack-launcher": "1.6.0",
  74. "karma-firefox-launcher": "2.1.2",
  75. "karma-mocha": "2.0.1",
  76. "karma-mocha-reporter": "2.2.5",
  77. "karma-webpack": "5.0.0",
  78. "mkdirp": "2.1.3",
  79. "mocha": "10.2.0",
  80. "mocha-junit-reporter": "2.2.0",
  81. "ndarray": "1.0.19",
  82. "ndarray-determinant": "1.0.0",
  83. "ndarray-gemm": "1.0.0",
  84. "ndarray-ops": "1.2.2",
  85. "ndarray-pack": "1.2.1",
  86. "numericjs": "1.2.6",
  87. "pad-right": "0.2.2",
  88. "prettier": "2.8.3",
  89. "process": "0.11.10",
  90. "sylvester": "0.0.21",
  91. "ts-node": "10.9.1",
  92. "typescript": "4.9.5",
  93. "webpack": "5.75.0",
  94. "zeros": "1.0.0"
  95. },
  96. "type": "module",
  97. "main": "./lib/cjs",
  98. "types": "./types/index.d.ts",
  99. "module": "./lib/esm",
  100. "unpkg": "./lib/browser/math.js",
  101. "jsdelivr": "./lib/browser/math.js",
  102. "exports": {
  103. ".": {
  104. "types": "./types/index.d.ts",
  105. "import": "./lib/esm/index.js",
  106. "require": "./lib/cjs/index.js"
  107. },
  108. "./number": {
  109. "types": "./types/index.d.ts",
  110. "import": "./lib/esm/number.js",
  111. "require": "./lib/cjs/number.js"
  112. },
  113. "./lib/esm/number": {
  114. "types": "./types/index.d.ts",
  115. "import": "./lib/esm/number.js",
  116. "require": "./lib/cjs/number.js"
  117. },
  118. "./package.json": "./package.json",
  119. "./lib/browser/math.js": "./lib/browser/math.js",
  120. "./lib/browser/math.js.map": "./lib/browser/math.js.map",
  121. "./dist/math.js": "./dist/math.js",
  122. "./dist/math.min.js": "./dist/math.min.js",
  123. "./main/es5/index.js": "./main/es5/index.js",
  124. "./main/es5/number.js": "./main/es5/number.js",
  125. "./main/esm/index.js": "./main/esm/index.js",
  126. "./main/esm/number.js": "./main/esm/number.js",
  127. "./number.js": "./number.cjs"
  128. },
  129. "files": [
  130. "bin",
  131. "dist",
  132. "lib",
  133. "main",
  134. "types",
  135. "number.cjs",
  136. "LICENSE",
  137. "NOTICE",
  138. "README.md",
  139. "HISTORY.md",
  140. "CONTRIBUTING.md"
  141. ],
  142. "directories": {
  143. "bin": "./bin",
  144. "lib": "./lib"
  145. },
  146. "scripts": {
  147. "build": "gulp --gulpfile gulpfile.cjs && npm run update-authors",
  148. "build-and-test": "npm run build && npm run test:all && npm run lint",
  149. "build:clean": "gulp --gulpfile gulpfile.cjs clean",
  150. "build:docs": "gulp --gulpfile gulpfile.cjs docs",
  151. "compile": "gulp --gulpfile gulpfile.cjs compile",
  152. "watch": "gulp --gulpfile gulpfile.cjs watch",
  153. "lint": "eslint --cache --max-warnings 0 src/ test/ types/",
  154. "format": "npm run lint -- --fix",
  155. "validate:ascii": "gulp --gulpfile gulpfile.cjs validate:ascii",
  156. "test": "npm run test:src && npm run lint",
  157. "test:src": "mocha test/unit-tests",
  158. "test:generated": "mocha test/generated-code-tests",
  159. "test:node": "mocha test/node-tests/*.test.js test/node-tests/**/*.test.js",
  160. "test:all": "npm run test:src && npm run test:generated && npm run test:node && npm run test:types",
  161. "test:browser": "karma start test/browser-test-config/local-karma.js",
  162. "test:browserstack": "karma start test/browser-test-config/browserstack-karma.js",
  163. "test:types": " tsc -p ./tsconfig.json && node --loader ts-node/esm ./test/typescript-tests/testTypes.ts",
  164. "coverage": "c8 --reporter=lcov --reporter=text-summary mocha test/unit-tests && echo \"\nDetailed coverage report is available at ./coverage/lcov-report/index.html\"",
  165. "prepublishOnly": "npm run test:all && npm run lint",
  166. "update-authors": "node ./tools/update-authors.js"
  167. },
  168. "bin": {
  169. "mathjs": "./bin/cli.js"
  170. },
  171. "engines": {
  172. "node": ">= 14"
  173. },
  174. "bugs": {
  175. "url": "https://github.com/josdejong/mathjs/issues"
  176. },
  177. "sideEffects": false
  178. }