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.

example.js 939B

12345678910111213141516171819202122232425262728293031323334
  1. let {
  2. getEdgeBetaPath,
  3. getEdgeCanaryPath,
  4. getEdgeDevPath,
  5. getEdgePath,
  6. getAnyEdgeStable,
  7. getAnyEdgeLatest,
  8. } = require(".")
  9. // don't forget to replace above with following line
  10. // let { getEdgeBetaPath, getEdgeCanaryPath, getEdgeDevPath, getEdgePath } = require("edge-paths")
  11. // Here is one naive example. Uncomment following line to test
  12. // console.log(getEdgeBetaPath())
  13. // console.log(getEdgeCanaryPath())
  14. // console.log(getEdgeDevPath())
  15. // console.log(getEdgePath())
  16. // Here is another example with try catch
  17. // This find edge function just ignore the error
  18. function findEdge(func) {
  19. try {
  20. let path = func()
  21. console.log("Found path", path)
  22. } catch (e) {
  23. console.log("Error on finding path", e)
  24. }
  25. }
  26. findEdge(() => getEdgeBetaPath())
  27. findEdge(() => getEdgeCanaryPath())
  28. findEdge(() => getEdgeDevPath())
  29. findEdge(() => getEdgePath())
  30. findEdge(() => getAnyEdgeStable())
  31. findEdge(() => getAnyEdgeLatest())