variety-plugins-searcher
v0.0.5
Published
Discover all the available Variety plugins in the npmjs.com registry.
Downloads
1
Readme
Variety plugins searcher
Discover all the available Variety plugins in the npmjs.com registry. Plugin can be discovered only if contains
variety-plugin
value in keywords
field of package.json.
For example:
"keywords": [
"variety-plugin",
"mongodb",
"csv"
]
Usage
All the methods are returning Q Promises, to allow simple async and errors handling.
Get All
List all the available plugins:
var plugins = require('variety-plugins-searcher')
plugins.all()
.then(function(data){
console.log(data);
})
.fail(function(err){
console.error(err);
})
.done();
Get Details
Get details of plugin variety-plugin-csv
.
var plugins = require('variety-plugins-searcher')
plugins.getDetails('csv')
.then(function(data){
console.log(data);
})
.fail(function(err){
console.error(err);
})
.done();