package.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "name": "detect-browser",
  3. "version": "5.3.0",
  4. "description": "Unpack a browser type and version from the useragent string",
  5. "main": "index.js",
  6. "module": "es/index.js",
  7. "types": "index.d.ts",
  8. "sideEffects": false,
  9. "scripts": {
  10. "pretest": "tsc",
  11. "test": "node test",
  12. "lint": "tslint -c tslint.json src/**",
  13. "compile": "npm-run-all -p compile:commonjs compile:es",
  14. "compile:commonjs": "tsc",
  15. "compile:es": "rimraf es && tsc --outDir es --module es6 --declaration false",
  16. "compile-and-size": "yarn tsc && cat index.js | gzip | wc -c",
  17. "prepare": "npm-run-all compile test lint",
  18. "patch-release": "npm version patch && npm publish && npm run postpublish",
  19. "minor-release": "npm version minor && npm publish && npm run postpublish",
  20. "major-release": "npm version major && npm publish && npm run postpublish",
  21. "postpublish": "git push origin master --follow-tags",
  22. "autoformat": "prettier --write src/** test/**",
  23. "gendocs": "embellish README.md"
  24. },
  25. "stability": "stable",
  26. "repository": {
  27. "type": "git",
  28. "url": "https://github.com/DamonOehlman/detect-browser.git"
  29. },
  30. "keywords": [
  31. "browser",
  32. "detect",
  33. "useragent"
  34. ],
  35. "author": "Damon Oehlman <damon.oehlman@gmail.com>",
  36. "license": "MIT",
  37. "bugs": {
  38. "url": "https://github.com/DamonOehlman/detect-browser/issues"
  39. },
  40. "homepage": "https://github.com/DamonOehlman/detect-browser",
  41. "devDependencies": {
  42. "@types/node": "^13.9.1",
  43. "embellish-readme": "^1.7.2",
  44. "npm-run-all": "^4.1.5",
  45. "prettier": "^1.18.2",
  46. "rimraf": "^3.0.2",
  47. "semver": "^7.1.3",
  48. "tape": "^4.11.0",
  49. "tslint": "^6.1.3",
  50. "typescript": "^4.4.3"
  51. }
  52. }