JavaScript code modules

You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!

자바스크립트(영어: JavaScript)는 객체 기반의 스크립트 프로그래밍 언어이다. 이 언어는 웹브라우저 내에서 주로 사용하며, 다른 응용 프로그램의 내장 객체에도 접근할 수 있는 기능을 가지고 있다. 또한 Node.js와 같은 런타임 환경과 같이 서버 사이드 네트워크 프로그래밍에도 사용되고 있다. 자바스크립트는 본래 넷스케이프 커뮤니케이션즈 코퍼레이션의 브렌던 아이크(Brendan Eich)가 처음에는 모카(Mocha)라는 이름으로, 나중에는 라이브스크립트(LiveScript)라는 이름으로 개발하였으며, 최종적으로 자바스크립트가 되었다JavaScript 코드 모듈을 사용하면 여러 개의 권한이 부여 된 JavaScript 범위에서 코드를 공유 할 수 있습니다. 예를 들어, 코드 중복을 피하기 위해 파이어 폭스 자체뿐만 아니라 확장 모듈에서도 모듈을 사용할 수 있습니다.

These are not the same thing as standard JavaScript modules. See export and import to learn more about how to use standard modules.

General topics

Using JavaScript code modules
An introduction to how to use JavaScript code modules.
How to import a JavaScript code module.
How to unload a JavaScript code module.
Code snippets: Modules
Examples of how to use code modules.
Mozilla Labs JS Modules
This page features a list of JavaScript modules, along with download links and documentation, that extension developers can use in their code.

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.
Provides an interface that allows JavaScript code to call native libraries without requiring the development of an XPCOM component.
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.
Abstracts the js-ctypes to provide an interface that allows JavaScript code to call code running in native JVMs.
Provides routines to convert between JavaScript Date objects 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 ChromeWorker which 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 mozIStorage/SQLite.
Implements a subset of Task.js to make sequential, asynchronous operations simple, using the power of JavaScript's yield operator.
A pure JS implementation of window.setTimeout.
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.
Contains utilities for JavaScript components loaded by the JS component loader.