1.0.1 • Published 9 years ago

ckan-search v1.0.1

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
9 years ago

ckan-search

Search CKAN and automatically traverse page list.

NPM

API

searcher = ckan(opts)

Options:

uri: can be changed if you have your own deployment. default 'http://datahub.io/api'

version: defaults to 3

timeout: not implemented

Example

var stream = searcher.stream({fulltext: 'your fulltext query text here'})
stream.on('data', function (data) {
  console.log(data.result.results) // each 'data' is a page from the search api
})

See test.js for an example.