Metadata search client addon
An addon for the Imbo javascript client.
Installation
imboclient-js-metadata can be installed using npm:
npm install imboclient-metadata
Basic usage
There is no clearly defined add-on or plugin concept in the imboclient
, but this add-on is written in a way that requires you to add the functions it exports to the Imbo.Client prototype for it to work. Exactly how you want to do this is up to you.
'use strict'; var Imbo = ;var metadata = ; // Add method to prototypeImboClientprototypesearchMetadata = metadatasearchMetadata;ImboClientprototypesearchGlobalMetadata = metadatasearchGlobalMetadata; // Instantiate clientvar client = 'http://imbo' 'foobar' 'barfoo'; // Search for cat images using metadata across user and other-userclient; // Search for cat images using metadata across user and other-userclient;
License
Copyright (c) 2015, Kristoffer Brabrand kristoffer@brabrand.no
Licensed under the MIT License