package.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "name": "browser-or-node",
  3. "version": "2.1.1",
  4. "description": "Check where the code is running in the browser or node.js",
  5. "main": "./lib/index.js",
  6. "types": "./lib/index.d.ts",
  7. "scripts": {
  8. "clean": "rimraf lib",
  9. "test": "npm run cover",
  10. "test:only": "cross-env BABEL_ENV=commonjs mocha --require babel-core/register --recursive",
  11. "test:watch": "npm test -- --watch",
  12. "test:examples": "node examples/",
  13. "cover": "cross-env BABEL_ENV=commonjs istanbul cover node_modules/mocha/bin/_mocha -- --require babel-core/register --recursive",
  14. "lint": "eslint src",
  15. "build": "cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files",
  16. "prepublish": "npm run clean && npm run lint && npm run test && npm run build"
  17. },
  18. "files": [
  19. "lib",
  20. "src"
  21. ],
  22. "repository": {
  23. "type": "git",
  24. "url": "git+https://github.com/flexdinesh/browser-or-node.git"
  25. },
  26. "keywords": [
  27. "npm",
  28. "browser",
  29. "node",
  30. "is browser",
  31. "is node",
  32. "is browser node"
  33. ],
  34. "author": "Dineshkumar Pandiyan <flexdinesh@gmail.com>",
  35. "contributors": [
  36. "Daniel Wang <daniel.liberated@gmail.com> (https://github.com/dan1wang/)"
  37. ],
  38. "license": "MIT",
  39. "bugs": {
  40. "url": "https://github.com/flexdinesh/browser-or-node/issues"
  41. },
  42. "homepage": "https://github.com/flexdinesh/browser-or-node#readme",
  43. "devDependencies": {
  44. "babel": "^6.23.0",
  45. "babel-cli": "^6.26.0",
  46. "babel-eslint": "^10.1.0",
  47. "babel-plugin-add-module-exports": "^1.0.2",
  48. "babel-preset-es2015": "^6.24.1",
  49. "babel-preset-stage-2": "^6.24.1",
  50. "chai": "^4.2.0",
  51. "cross-env": "^7.0.2",
  52. "eslint": "^7.3.1",
  53. "eslint-config-prettier": "^8.3.0",
  54. "eslint-plugin-import": "^2.21.2",
  55. "eslint-plugin-jsx-a11y": "^6.3.1",
  56. "eslint-plugin-react": "^7.20.0",
  57. "istanbul": "^1.0.0-alpha",
  58. "mocha": "^8.0.1",
  59. "rimraf": "^3.0.2"
  60. }
  61. }