zombie.jsdoc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /**
  2. Zombie Navigator API (ZAPI) documentation
  3. @copyright
  4. Copyright © 2016 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.6.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 URI of the addon's license text
  51. @type {string}
  52. @public
  53. @since 0.5.0
  54. */
  55. licenseURI: '',
  56. /**
  57. The name of the application
  58. @type {string}
  59. @public
  60. */
  61. applicationName: '',
  62. /**
  63. The version of the application
  64. @type {string}
  65. @public
  66. */
  67. applicationVersion: '',
  68. /**
  69. Show a notification to the user
  70. @param {string} text
  71. @public
  72. */
  73. showNotification: function () {},
  74. /**
  75. Print a string to STDOUT
  76. @param {...string} data
  77. @returns {number} number of bytes written
  78. @public
  79. */
  80. print: function () {},
  81. END_OF_NAMESPACE: true
  82. };
  83. /**
  84. Console API
  85. @example
  86. const {console} = require('zombie/zombie');
  87. @namespace
  88. @public
  89. */
  90. var console = {
  91. /**
  92. @param {...string} message
  93. @public
  94. */
  95. log: function () {},
  96. /**
  97. @param {...string} message
  98. @public
  99. */
  100. error: function () {},
  101. /**
  102. @param {...string} message
  103. @public
  104. */
  105. info: function () {},
  106. /**
  107. @param {...string} message
  108. @public
  109. */
  110. warn: function () {},
  111. /**
  112. @param {...Error} exception
  113. @public
  114. */
  115. exception: function () {},
  116. END_OF_NAMESPACE: true
  117. };
  118. /**
  119. Access environment variables (use getEnvName() to get the real (mapped)
  120. name of a variable)
  121. @example
  122. const {env, getEnvName} = require('zombie/zombie');
  123. env.my_variable; // may be empty ('')
  124. getEnvName('my_variable'); // real variable name
  125. @since 0.4.0
  126. @public
  127. @type {object}
  128. */
  129. var env = {};
  130. /**
  131. Get the real name of an environment variable
  132. @since 0.4.0
  133. @public
  134. @param {string} name
  135. @returns {string}
  136. */
  137. var getEnvName = function () {};
  138. // vim: ts=4 noet ai ft=js