Skip to content

chrishomer/merlin.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merlin JavaScript Library

This is the JavaScript library for Merlin Search.

Installation

node (also browserify/webpack compatible)

npm install merlin.js
var Blackbird = require('merlin.js');

Browser

<script src="merlin.js"></script>

Usage

For usage examples, see the Search API documentation.

var engine = Blackbird.engine({
    company: 'company_name',
    environment: 'environment_name', 
    instance: 'instance_name'
});

engine.search({ q: 'dress' })
.end(function (e, r) { 
    console.log(r.body.results.numfound);
});

Development

Clone the repo, then run the following:

cd merlin.js
npm install

Build

Building compiles the es5 JavaScript and the webpacked merlin.js

npm run build

Running the tests (mocha)

npm test

Documentation

About

The JavaScript library for Merlin Search.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors