0.0.0 • Published 10 years ago
docvy-plugin-installer v0.0.0
docvy-plugin-installer
Installs plugins for the Docvy Application
installation:
⇒ npm install docvy-plugin-installerusage:
This component may be used programmatically, as in the docvy application, or from the terminal as a stand-alone application.
terminal usage:
Help information for terminal usage:
⇒ docvy-plugins help
docvy-plugins: The Docvy Plugin Installer
dir-install <dirpath> install plugin from <dirpath>
help show this help information
install <plugin> install <plugin>
list list installed plugins
npm-install <plugin> install <plugin> from NPM
uninstall <plugin> uninstall <plugin>
version show version information
See https://github.com/docvy/plugin-installer for feature-requests and bug-reportsAPI:
var installer = require("docvy-installer");installer.install(names , callback)
The installer defaults to installing from NPM. See installer.npmInstall for more information.
installer.npmInstall(names , callback)
Installs new plugins from NPM. Plugin MUST be available through npm.
names(ArrayString): array of names of the plugins to installcallback(Function):- signature:
callback(err)
- signature:
installer.dirInstall(dirpath , callback)
Installs plugin from directory at dirpath.
dirpath(String): path to the directory holding the plugins contentcallback(Function):- signature:
callback(err)
- signature:
installer.uninstall(names , callback)
Uninstalls a plugins from the Plugins directory.
names(ArrayString): array of names of plugins to uninstallcallback(Function):- signature:
callback(err) - On success,
errwill benull - On error,
errwill be anErrorobject
- signature:
installer.listPlugins(callback)
Lists all the installed plugins
callback(Function):- signature:
callback(err, pluginsInfo) - On success,
errwill benullandpluginsInfowill be an array of plugins descriptors - On error,
errwill be anErrorobject andpluginsInfobenull
- signature:
plugin descriptor
Describes a plugin.
Example [Schema Reference]:
{
"name": "dp-markdown",
"version": "1.0.0",
"author": {
"name": "GochoMugo",
"email": "mugo@forfuture.co.ke"
},
"icon": "icon128.png",
"homepage": "https://github.com/docvy/dp-markdown"
}license:
The MIT License (MIT)
Copyright (c) 2015 Forfuture LLC we@forfuture.co.ke Copyright (c) 2015 GochoMugo mugo@forfuture.co.ke
0.0.0
10 years ago