Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).
- Code snippets: Modules
- Examples of how to use code modules.
- Mozilla Labs JS Modules
Standard code modules
- An interface to install, manage, and uninstall add-ons.
- Provides a search of add-ons in the repository.
- Implements the CommonJS Unit Testing specification version 1.1, which provides a basic standardized interface for performing in-code logical assertions with optional, customizable error reporting.
- Provides utility functions for importing and exporting bookmarks from the old-school "bookmarks.html" style bookmark files.
- Allows you to interact with customizable buttons and items in Firefox's main window UI.
- Run a task after a delay.
- Provides an API for key/value pair dictionaries.
- Supplies the path to the directory into which the last download occurred.
- Provides a single entry point to interact with the downloading capabilities of the platform.
- Provides helpers for dealing with files.
- Provides routines for performing basic geometric operations on points and rectangles.
- A wrapper for XMLHttpRequest that provides convenient and simplified API for dealing with HTTP requests.
Dateobjects and ISO 8601 date strings.
- Log.jsm (formerly log4moz)
- Provides a log4j style API for logging, log messages to various endpoints, such as the Browser Console or a file on disk.
- Provides helpful networking utility functions, including the ability to easily copy data from an input stream to an output stream asynchronously.
- Provides access to the last URL opened using the "Open Location" option in the File menu.
- Allows routines to access files. To which can be read, write, rename, create directories,etc.
- Provides access to low-level hardware and OS performance measurement tools.
- Supplies an easy way to get the correct plural forms for the current locale, as well as ways to localize to a specific plural rule.
- Gives an easy way to present non-modal notifications to users.
- Implements the Promises/A+ proposal as known in April 2013.
- A version of
ChromeWorkerwhich uses Promises to return the worker's result instead of using an event to do so.
- Provides getters for conveniently obtaining access to commonly-used services.
- The Source Editor is used by developer tools such as, the Style Editor; this interface implements the editor and lets you interact with it.
- A Promise-based API to
- A pure JS implementation of
- Provides an interface to manage Open Web Apps.
- Provides an API to add event listeners for the various stages of making an HTTP request. The event listener receives detailed information about the request, and can modify or cancel the request.