zombie.jsdoc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /**
  2. Zombie Navigator API (ZAPI) documentation
  3. @copyright
  4. Copyright © 2015 Zombie Navigator Developers
  5. <br /><br />
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU Affero General Public License as
  8. published by the Free Software Foundation, either version 3 of the
  9. License, or (at your option) any later version.
  10. <br /><br />
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU Affero General Public License for more details.
  15. <br /><br />
  16. You should have received a copy of the GNU Affero General Public License
  17. along with this program. If not, see {@link http://www.gnu.org/licenses/}.
  18. <br /><br />
  19. The latest version of the GNU AGPL should be available here:
  20. {@link https://www.gnu.org/licenses/agpl.html}
  21. @file
  22. @module zombie/zombie
  23. @license AGPL-3.0+
  24. @version 0.4.0
  25. */
  26. /*
  27. This is not a script but a JSDoc documentation source.
  28. */
  29. /**
  30. @example
  31. const {zombie} = require('zombie/zombie');
  32. zombie.showNotification('Version: ' + zombie.version);
  33. @namespace
  34. @public
  35. */
  36. var zombie = {
  37. /**
  38. The name of this addon
  39. @type {string}
  40. @public
  41. */
  42. productName: '',
  43. /**
  44. The version of the addon
  45. @type {string}
  46. @public
  47. */
  48. version: '',
  49. /**
  50. The name of the application
  51. @type {string}
  52. @public
  53. */
  54. applicationName: '',
  55. /**
  56. The version of the application
  57. @type {string}
  58. @public
  59. */
  60. applicationVersion: '',
  61. /**
  62. Show a notification to the user
  63. @param {string} text
  64. @public
  65. */
  66. showNotification: function () {},
  67. /**
  68. Print a string to STDOUT
  69. @param {...string} data
  70. @returns {number} number of bytes written
  71. @public
  72. */
  73. print: function () {},
  74. END_OF_NAMESPACE: true
  75. };
  76. /**
  77. Console API
  78. @example
  79. const {console} = require('zombie/zombie');
  80. @namespace
  81. @public
  82. */
  83. var console = {
  84. /**
  85. @param {...string} message
  86. @public
  87. */
  88. log: function () {},
  89. /**
  90. @param {...string} message
  91. @public
  92. */
  93. error: function () {},
  94. /**
  95. @param {...string} message
  96. @public
  97. */
  98. info: function () {},
  99. /**
  100. @param {...string} message
  101. @public
  102. */
  103. warn: function () {},
  104. /**
  105. @param {...Error} exception
  106. @public
  107. */
  108. exception: function () {},
  109. END_OF_NAMESPACE: true
  110. };
  111. /**
  112. Access environment variables (use getEnvName() to get the real (mapped)
  113. name of a variable)
  114. @example
  115. const {env, getEnvName} = require('zombie/zombie');
  116. env.my_variable; // may be empty ('')
  117. getEnvName('my_variable'); // real variable name
  118. @since 0.4.0
  119. @public
  120. @type {object}
  121. */
  122. var env = {};
  123. /**
  124. Get the real name of an environment variable
  125. @since 0.4.0
  126. @public
  127. @param {string} name
  128. @returns {string}
  129. */
  130. var getEnvName = function () {};
  131. // vim: ts=4 noet ai ft=js