Package manager for coordinating the lifecycle of Atom packages.
An instance of this class is always available as the atom.packages global.
Packages can be loaded, activated, and deactivated, and unloaded:
activate()
on the package’s main module.deactivate() on the package’s main module.Packages can be enabled/disabled via the core.disabledPackages config
settings and also by calling enablePackage()/disablePackage().
Invoke the given callback when all packages have been loaded.
| Argument | Description | 
|---|---|
| 
 | 
| Return values | 
|---|
| Returns a Disposable on which  | 
Invoke the given callback when all packages have been activated.
| Argument | Description | 
|---|---|
| 
 | 
| Return values | 
|---|
| Returns a Disposable on which  | 
Invoke the given callback when a package is activated.
| Argument | Description | 
|---|---|
| 
 | A Function to be invoked when a package is activated. | 
| 
 | The Package that was activated. | 
| Return values | 
|---|
| Returns a Disposable on which  | 
Invoke the given callback when a package is deactivated.
| Argument | Description | 
|---|---|
| 
 | A Function to be invoked when a package is deactivated. | 
| 
 | The Package that was deactivated. | 
| Return values | 
|---|
| Returns a Disposable on which  | 
Invoke the given callback when a package is loaded.
| Argument | Description | 
|---|---|
| 
 | A Function to be invoked when a package is loaded. | 
| 
 | The Package that was loaded. | 
| Return values | 
|---|
| Returns a Disposable on which  | 
Invoke the given callback when a package is unloaded.
| Argument | Description | 
|---|---|
| 
 | A Function to be invoked when a package is unloaded. | 
| 
 | The Package that was unloaded. | 
| Return values | 
|---|
| Returns a Disposable on which  | 
Get the path to the apm command.
Uses the value of the core.apmPath config setting if it exists.
Return a String file path to apm.