JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 71129
  • Score
    100M100P100Q167662F
  • License Apache

Abstract mapreduce =====

Package Exports

  • pouchdb-abstract-mapreduce

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pouchdb-abstract-mapreduce) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Abstract Map Reduce

Build Status

Abstract map/reduce functions pulled out of the PouchDB map/reduce plugin. Designed to be used for:

  • map/reduce
  • geo queries
  • full-text search queries
  • pouchdb-indexes (aka Mango queries, aka Cloudant Query Language)

Building

npm install
npm run build

Testing

Warning: to really test your current working copy, you should link pouchdb-mapreduce to its parent module:

rm -fr node_modules/pouchdb-mapreduce/node_modules/pouchdb-abstract-mapreduce
ln -s ../../.. node_modules/pouchdb-mapreduce/node_modules/pouchdb-abstract-mapreduce

In Node

npm test

To run coverage tests:

npm run coverage

To run individual tests:

GREP=my_search_term npm test

In the browser

Run

npm run dev

and then point your favorite browser to http://127.0.0.1:8001/test/index.html.

To run individual tests, load e.g.:

http://127.0.0.1:8001/test/index.html?grep=my_search_term