Editor.Package
Package module for manipulating packages.
Methods
Editor.Package.load (path, callback)
pathstring - An absolute path point to a package foldercallbackfunction - Callback when finish loading
Load a package at path.
Editor.Package.unload (path, callback)
pathstring - An absolute path point to a package foldercallbackfunction - Callback when finish unloading
Unload a package at path.
Editor.Package.reload (path, callback)
pathstring - An absolute path point to a package foldercallbackfunction - Callback when finish reloading
Reload a package at path.
Editor.Package.panelInfo (panelID)
panelIDstring - The panel ID
Find and get panel info via panelID, the panel info is the JSON object that defined in panels.{panel-name} in your package.json.
Editor.Package.packageInfo (path)
pathstring - The package path
Find and get package info via path, the package info is the JSON object of your package.json file.
Editor.Package.packagePath (name)
namestring - The package name
Return the path of the package by name.
Editor.Package.addPath (path)
pathstring|array - Path to add
Add package search path.
Editor.Package.removePath (path)
pathstring - Path to remove
Remove package search path.
Editor.Package.resetPath ()
Reset path.
Editor.Package.find (name)
namestring - Package name
Find and return the package path via name.
Properties
Editor.Package.lang
Return current language setting.
Editor.Package.path
Return package search path list.
Editor.Package.versions
Return the version of sub modules.