Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # Edge Paths
  2. [![npm version](https://img.shields.io/npm/v/edge-paths.svg)](https://www.npmjs.com/package/edge-paths)
  3. [![Downloads](https://img.shields.io/npm/dm/edge-paths.svg)](https://npmjs.com/edge-paths)
  4. [![Install size](https://packagephobia.now.sh/badge?p=edge-paths)](https://packagephobia.now.sh/result?p=edge-paths)
  5. ![Test Edge Paths](https://github.com/shirshak55/edge-paths/workflows/Test%20Edge%20Paths/badge.svg)
  6. Possible paths or binary names of [Edge](https://www.microsoft.com/en-us/edge) in the current platform
  7. ### Why?
  8. - Well Documented
  9. - Well Tested
  10. - Used by popular players
  11. - Written with Love <3
  12. - Fully open sourced
  13. ### Usage
  14. - At the moment linux support is only avail for dev channel. Once canary, beta and stable version are release
  15. we shall update the package.
  16. ###### Javascript
  17. ```javascript
  18. let {
  19. getEdgeBetaPath,
  20. getEdgeCanaryPath,
  21. getEdgeDevPath,
  22. getEdgePath,
  23. getAnyEdgeStable,
  24. getAnyEdgeLatest,
  25. } = require("edge-paths")
  26. console.log(getEdgeBetaPath())
  27. console.log(getEdgeCanaryPath())
  28. console.log(getEdgeDevPath())
  29. console.log(getEdgePath())
  30. // console.log(getAnyEdgeStable())
  31. // console.log(getAnyEdgeLatest())
  32. ```
  33. The output shall look like this according to your installation
  34. ```javascript
  35. // On OSX
  36. // /Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Beta
  37. // /Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary
  38. // /Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Dev
  39. // /Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge
  40. // On Windows
  41. // C:\Program Files (x86)\Microsoft\Edge Beta\Application\msedge.exe
  42. // C:\Program Files (x86)\Microsoft\Edge Canary\Application\msedge.exe
  43. // C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe
  44. // C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
  45. // On Linux
  46. // Beta edge not avail yet
  47. // Canary not avail
  48. // /usr/bin/microsoft-edge-dev
  49. // Stable not avail
  50. ```
  51. ###### Typescript
  52. ```typescript
  53. import { getEdgeBetaPath, getEdgeCanaryPath, getEdgeDevPath, getEdgePath } from "edge-paths"
  54. console.log(getEdgeBetaPath())
  55. console.log(getEdgeCanaryPath())
  56. console.log(getEdgeDevPath())
  57. console.log(getEdgePath())
  58. ```
  59. ## Installation
  60. [Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).
  61. ```bash
  62. $ npm install edge-paths
  63. // or
  64. $ yarn add edge-paths
  65. ```
  66. ## API
  67. ```javascript
  68. let {
  69. getEdgeBetaPath,
  70. getEdgeCanaryPath,
  71. getEdgeDevPath,
  72. getEdgePath,
  73. getAnyEdgeStable,
  74. getAnyEdgeLatest,
  75. } = require("edge-paths")
  76. ```
  77. - `getAnyEdgeStable` or `getAnyEdgeLatest` might be more useful if you don't want any specific version.
  78. ## Used By
  79. - [devtools](https://www.npmjs.com/package/devtools)
  80. - Please send PR if you are using edge paths. We will be accepting first 10 request.
  81. ## License
  82. [MIT License](./LICENSE)
  83. © 2020 Shirshak Bajgain