aboutsummaryrefslogtreecommitdiff
path: root/files/pl/mozilla/javascript_code_modules/index.html
blob: 96c35a7a3de0a2fef1423c8ec62542c327f97c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
title: JavaScript code modules
slug: Mozilla/JavaScript_code_modules
tags:
  - Add-ons
  - Extensions
  - JavaScript
  - Modules
  - NeedsTranslation
  - TopicStub
  - XPCOM
translation_of: Mozilla/JavaScript_code_modules
---
<div>{{gecko_minversion_header("1.9")}}</div>

<p><span id="result_box" lang="pl"><span>Moduły kodu JavaScript pozwalają na udostępnianie kodu wielu uprzywilejowanych zakresów JavaScript.</span> <span>Na przykład moduł może być używany zarówno przez samą przeglądarkę Firefox, jak i przez rozszerzenia, aby uniknąć powielania kodu.</span></span></p>

<div class="note">
<p><span id="result_box" lang="pl"><span>Nie są to standardowe moduły JavaScript</span></span> . Sprawdź {{jsxref("Statements/export", "export")}} oraz {{jsxref("Statements/import", "import")}} <span class="short_text" id="result_box" lang="pl"><span>aby dowiedzieć się więcej o tym, jak korzystać ze standardowych modułów.</span></span></p>
</div>

<table class="topicpage-table">
 <tbody>
  <tr>
   <td>
    <h2 id="Tematy_główne">Tematy główne</h2>

    <dl>
     <dt><a href="/en-US/docs/JavaScript_code_modules/Using" title="./Using">Używanie modułów kodu JavaScript</a></dt>
     <dd>Wprowadzenie do korzystania z modułów kodu JavaScript.</dd>
     <dt><a href="/en-US/docs/Components.utils.import" title="Components.utils.import">Component.utils.import</a></dt>
     <dd>Jak zaimportować moduł kodu JavaScript.</dd>
     <dt><a href="/en-US/docs/Components.utils.unload" title="Components.utils.unload">Component.utils.unload</a> {{gecko_minversion_inline("7.0")}}</dt>
     <dd>Jak zwolnić moduł kodu JavaScript.</dd>
     <dt><a href="/en-US/docs/Code_snippets/Modules" title="Code_snippets/Modules">Fragmenty kodu: moduły</a></dt>
     <dd>Przykłady korzystania z modułów kodu.</dd>
     <dt><a class="external" href="http://wiki.mozilla.org/Labs/JS_Modules">Moduły JS Mozilla Labs</a></dt>
     <dd>Ta strona zawiera listę modułów JavaScript wraz z linkami do pobrania i dokumentacją, które programiści rozszerzeń mogą użyć w swoim kodzie.</dd>
    </dl>

    <dl>
    </dl>
   </td>
   <td>
    <h2 id="Standard_code_modules">Standard code modules</h2>

    <dl>
     <dt><a href="/en-US/docs/Addons/Add-on_Manager" title="Addons/Add-on_Manager">AddonManager.jsm</a> {{gecko_minversion_inline("2.0")}}</dt>
     <dd>Interface to install, manage, and uninstall add-ons.</dd>
     <dt><a href="/en-US/docs/Addons/Add-on_Repository" title="Addons/Add-on Repository">AddonRepository.jsm</a> {{gecko_minversion_inline("2.0")}}</dt>
     <dd>Allows searching of the add-ons repository.</dd>
     <dt><a href="/en-US/docs/Mozilla/js-ctypes" title="./ctypes.jsm">ctypes.jsm</a> {{fx_minversion_inline("3.6")}}</dt>
     <dd>Provides an interface that allows JavaScript code to call native libraries without requiring the development of an XPCOM component.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/DeferredTask.jsm" title="./DeferredTask.jsm">DeferredTask.jsm</a> {{gecko_minversion_inline("18.0")}}</dt>
     <dd>Run a task after a delay.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/Dict.jsm" title="./Dict.jsm">Dict.jsm</a> {{gecko_minversion_inline("5.0")}}</dt>
     <dd>Provides an API for key/value pair dictionaries.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/DownloadLastDir.jsm" title="./DownloadLastDir.jsm">DownloadLastDir.jsm</a> {{gecko_minversion_inline("2.0")}}</dt>
     <dd>Provides the path to the directory into which the last download occurred.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/Downloads.jsm" title="./Downloads.jsm">Downloads.jsm</a> {{gecko_minversion_inline("23.0")}}</dt>
     <dd>Provides a single entry point to interact with the downloading capabilities of the platform.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/FileUtils.jsm" title="./FileUtils.jsm"><strong style="font-weight: bold;">FileUtils.jsm</strong></a> {{gecko_minversion_inline("1.9.2")}}</dt>
     <dd>Provides helpers for dealing with files.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/Geometry.jsm" title="./Geometry.jsm">Geometry.jsm</a> {{gecko_minversion_inline("2.0")}}</dt>
     <dd>Provides routines for performing basic geometric operations on points and rectangles.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/ISO8601DateUtils.jsm" title="./ISO8601DateUtils.jsm">ISO8601DateUtils.jsm</a></dt>
     <dd>Provides routines to convert between JavaScript <a href="/en-US/docs/JavaScript/Reference/Global_Objects/Date" title="JavaScript/ Reference/Global Objects/Date"><code>Date</code></a> objects and ISO 8601 date strings.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/NetUtil.jsm" title="./NetUtil.jsm"><strong style="font-weight: bold;">NetUtil.jsm</strong></a></dt>
     <dd>Provides helpful networking utility functions, including the ability to easily copy data from an input stream to an output stream asynchronously.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/openLocationLastURL.jsm" title="./openLocationLastURL.jsm">openLocationLastURL.jsm</a> {{gecko_minversion_inline("1.9.1.4")}}</dt>
     <dd>Provides access to the last URL opened using the "Open Location" option in the File menu.</dd>
     <dt><a href="/en-US/docs/JavaScript_OS.File" title="/en-US/docs/JavaScript_OS.File">osfile.jsm</a> {{gecko_minversion_inline("16.0")}}</dt>
     <dd>JavaScript module <code>OS.File</code> contains primitives for manipulating files</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/PerfMeasurement.jsm" title="./PerfMeasurement.jsm">PerfMeasurement.jsm</a> {{fx_minversion_inline("4.0")}}</dt>
     <dd>Provides access to low-level hardware and OS performance measurement tools.</dd>
     <dt><a href="/en-US/docs/Localization_and_Plurals" title="Localization and Plurals">PluralForm.jsm</a></dt>
     <dd>Provides an easy way to get the correct plural forms for the current locale, as well as ways to localize to a specific plural rule.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/PopupNotifications.jsm" title="./PopupNotifications.jsm">PopupNotifications.jsm</a> {{gecko_minversion_inline("2.0")}}</dt>
     <dd>Provides an easy way to present non-modal notifications to users.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm" title="./Promise.jsm">Promise.jsm</a> {{gecko_minversion_inline("25.0")}}</dt>
     <dd>Implements the <a class="external" href="https://github.com/promises-aplus/promises-spec/blob/1.0.0/README.md" title="https://github.com/promises-aplus/promises-spec/blob/1.0.0/README.md">Promises/A+</a> proposal as known in April 2013.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/Services.jsm" title="./Services.jsm">Services.jsm</a> {{gecko_minversion_inline("2.0")}}</dt>
     <dd>Provides getters for conveniently obtaining access to commonly-used services.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/source-editor.jsm" title="./source-editor.jsm">source-editor.jsm</a> {{fx_minversion_inline("11.0")}}</dt>
     <dd>The Source Editor is used by developer tools such as the Style Editor; this interface implements the editor and lets you interact with it.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/Sqlite.jsm" title="./Sqlite.jsm">Sqlite.jsm</a> {{gecko_minversion_inline("20.0")}}</dt>
     <dd>A Promise-based API to {{ interface("mozIStorage") }}/SQLite.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/Task.jsm" title="./Task.jsm">Task.jsm</a> {{gecko_minversion_inline("17.0")}}</dt>
     <dd>Implements a subset of <a class="external" href="http://taskjs.org/" title="http://taskjs.org/">Task.js</a> to make sequential, asynchronous operations simple, using the power of JavaScript's <code>yield</code> operator.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/Timer.jsm" title="/en-US/docs/Mozilla/JavaScript_code_modules/Timer.jsm">Timer.jsm </a>{{gecko_minversion_inline("22.0")}}</dt>
     <dd>A pure JS implementation of <code>window.setTimeout</code>.</dd>
     <dt><a href="/en-US/docs/Mozilla/JavaScript_code_modules/XPCOMUtils.jsm" title="./XPCOMUtils.jsm">XPCOMUtils.jsm</a></dt>
     <dd>Contains utilities for JavaScript components loaded by the JS component loader.</dd>
    </dl>
   </td>
  </tr>
 </tbody>
</table>