ckan-search

1.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ckan-search

Weekly Downloads

1

Version

1.0.1

License

BSD-2-Clause

Last publish

Collaborators

  • karissa