Skip to content

Instantly share code, notes, and snippets.

@Hypercubed
Last active October 20, 2015 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hypercubed/d3671f30905adafd3c9c to your computer and use it in GitHub Desktop.
Save Hypercubed/d3671f30905adafd3c9c to your computer and use it in GitHub Desktop.
PoauchDB test
jspm_packages

To install PouchDB using jspm:

jspm install pouchdb=npm:pouchdb

then import:

import PouchDB from 'pouchdb';
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: "traceur",
paths: {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
map: {
"pouchdb": "npm:pouchdb@5.0.0",
"traceur": "github:jmcriffey/bower-traceur@0.0.91",
"traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.91",
"github:jspm/nodelibs-assert@0.1.0": {
"assert": "npm:assert@1.3.0"
},
"github:jspm/nodelibs-buffer@0.1.0": {
"buffer": "npm:buffer@3.5.1"
},
"github:jspm/nodelibs-constants@0.1.0": {
"constants-browserify": "npm:constants-browserify@0.0.1"
},
"github:jspm/nodelibs-crypto@0.1.0": {
"crypto-browserify": "npm:crypto-browserify@3.10.0"
},
"github:jspm/nodelibs-events@0.1.1": {
"events": "npm:events@1.0.2"
},
"github:jspm/nodelibs-http@1.7.1": {
"Base64": "npm:Base64@0.2.1",
"events": "github:jspm/nodelibs-events@0.1.1",
"inherits": "npm:inherits@2.0.1",
"stream": "github:jspm/nodelibs-stream@0.1.0",
"url": "github:jspm/nodelibs-url@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"github:jspm/nodelibs-net@0.1.2": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"http": "github:jspm/nodelibs-http@1.7.1",
"net": "github:jspm/nodelibs-net@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2",
"stream": "github:jspm/nodelibs-stream@0.1.0",
"timers": "github:jspm/nodelibs-timers@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"github:jspm/nodelibs-os@0.1.0": {
"os-browserify": "npm:os-browserify@0.1.2"
},
"github:jspm/nodelibs-path@0.1.0": {
"path-browserify": "npm:path-browserify@0.0.0"
},
"github:jspm/nodelibs-process@0.1.2": {
"process": "npm:process@0.11.2"
},
"github:jspm/nodelibs-querystring@0.1.0": {
"querystring": "npm:querystring@0.2.0"
},
"github:jspm/nodelibs-stream@0.1.0": {
"stream-browserify": "npm:stream-browserify@1.0.0"
},
"github:jspm/nodelibs-string_decoder@0.1.0": {
"string_decoder": "npm:string_decoder@0.10.31"
},
"github:jspm/nodelibs-timers@0.1.0": {
"timers-browserify": "npm:timers-browserify@1.4.1"
},
"github:jspm/nodelibs-tty@0.1.0": {
"tty-browserify": "npm:tty-browserify@0.0.0"
},
"github:jspm/nodelibs-url@0.1.0": {
"url": "npm:url@0.10.3"
},
"github:jspm/nodelibs-util@0.1.0": {
"util": "npm:util@0.10.3"
},
"github:jspm/nodelibs-vm@0.1.0": {
"vm-browserify": "npm:vm-browserify@0.0.4"
},
"npm:abstract-leveldown@0.12.3": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"util": "github:jspm/nodelibs-util@0.1.0",
"xtend": "npm:xtend@3.0.0"
},
"npm:abstract-leveldown@2.1.4": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"util": "github:jspm/nodelibs-util@0.1.0",
"xtend": "npm:xtend@4.0.0"
},
"npm:acorn@1.2.2": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"stream": "github:jspm/nodelibs-stream@0.1.0"
},
"npm:amdefine@1.0.0": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"module": "github:jspm/nodelibs-module@0.1.0",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:asn1.js@2.2.1": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"bn.js": "npm:bn.js@2.2.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"inherits": "npm:inherits@2.0.1",
"minimalistic-assert": "npm:minimalistic-assert@1.0.0",
"vm": "github:jspm/nodelibs-vm@0.1.0"
},
"npm:assert@1.3.0": {
"util": "npm:util@0.10.3"
},
"npm:bl@0.8.2": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"readable-stream": "npm:readable-stream@1.0.33",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:bops@0.1.1": {
"base64-js": "npm:base64-js@0.0.2",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"to-utf8": "npm:to-utf8@0.0.1"
},
"npm:browserify-aes@1.0.5": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"buffer-xor": "npm:buffer-xor@1.0.3",
"cipher-base": "npm:cipher-base@1.0.1",
"create-hash": "npm:create-hash@1.1.2",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"evp_bytestokey": "npm:evp_bytestokey@1.0.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"inherits": "npm:inherits@2.0.1",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:browserify-cipher@1.0.0": {
"browserify-aes": "npm:browserify-aes@1.0.5",
"browserify-des": "npm:browserify-des@1.0.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"evp_bytestokey": "npm:evp_bytestokey@1.0.0"
},
"npm:browserify-des@1.0.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"cipher-base": "npm:cipher-base@1.0.1",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"des.js": "npm:des.js@1.0.0",
"inherits": "npm:inherits@2.0.1"
},
"npm:browserify-rsa@2.0.1": {
"bn.js": "npm:bn.js@2.2.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"constants": "github:jspm/nodelibs-constants@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"randombytes": "npm:randombytes@2.0.1"
},
"npm:browserify-sign@3.0.8": {
"bn.js": "npm:bn.js@2.2.0",
"browserify-rsa": "npm:browserify-rsa@2.0.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"create-hash": "npm:create-hash@1.1.2",
"create-hmac": "npm:create-hmac@1.1.4",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"elliptic": "npm:elliptic@3.1.0",
"inherits": "npm:inherits@2.0.1",
"parse-asn1": "npm:parse-asn1@3.0.2",
"stream": "github:jspm/nodelibs-stream@0.1.0"
},
"npm:buffer-xor@1.0.3": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:buffer@3.5.1": {
"base64-js": "npm:base64-js@0.0.8",
"ieee754": "npm:ieee754@1.1.6",
"is-array": "npm:is-array@1.0.1"
},
"npm:bytewise@0.7.1": {
"bops": "npm:bops@0.1.1"
},
"npm:cipher-base@1.0.1": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"inherits": "npm:inherits@2.0.1",
"stream": "github:jspm/nodelibs-stream@0.1.0",
"string_decoder": "github:jspm/nodelibs-string_decoder@0.1.0"
},
"npm:constants-browserify@0.0.1": {
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:core-util-is@1.0.1": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:create-ecdh@2.0.2": {
"bn.js": "npm:bn.js@2.2.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"elliptic": "npm:elliptic@3.1.0"
},
"npm:create-hash@1.1.2": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"cipher-base": "npm:cipher-base@1.0.1",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"inherits": "npm:inherits@2.0.1",
"ripemd160": "npm:ripemd160@1.0.1",
"sha.js": "npm:sha.js@2.4.4"
},
"npm:create-hmac@1.1.4": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"create-hash": "npm:create-hash@1.1.2",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"inherits": "npm:inherits@2.0.1",
"stream": "github:jspm/nodelibs-stream@0.1.0"
},
"npm:crypto-browserify@3.10.0": {
"browserify-cipher": "npm:browserify-cipher@1.0.0",
"browserify-sign": "npm:browserify-sign@3.0.8",
"create-ecdh": "npm:create-ecdh@2.0.2",
"create-hash": "npm:create-hash@1.1.2",
"create-hmac": "npm:create-hmac@1.1.4",
"diffie-hellman": "npm:diffie-hellman@3.0.2",
"inherits": "npm:inherits@2.0.1",
"pbkdf2": "npm:pbkdf2@3.0.4",
"public-encrypt": "npm:public-encrypt@2.0.1",
"randombytes": "npm:randombytes@2.0.1"
},
"npm:d64@1.0.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:debug@2.2.0": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"ms": "npm:ms@0.7.1",
"net": "github:jspm/nodelibs-net@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2",
"tty": "github:jspm/nodelibs-tty@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:deferred-leveldown@0.2.0": {
"abstract-leveldown": "npm:abstract-leveldown@0.12.3",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:deferred-leveldown@1.0.0": {
"abstract-leveldown": "npm:abstract-leveldown@2.1.4",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:des.js@1.0.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"inherits": "npm:inherits@2.0.1",
"minimalistic-assert": "npm:minimalistic-assert@1.0.0"
},
"npm:diffie-hellman@3.0.2": {
"bn.js": "npm:bn.js@2.2.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"miller-rabin": "npm:miller-rabin@2.0.1",
"randombytes": "npm:randombytes@2.0.1",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:double-ended-queue@2.0.0-0": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:elliptic@3.1.0": {
"bn.js": "npm:bn.js@2.2.0",
"brorand": "npm:brorand@1.0.5",
"hash.js": "npm:hash.js@1.0.3",
"inherits": "npm:inherits@2.0.1",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:end-stream@0.1.0": {
"write-stream": "npm:write-stream@0.4.3"
},
"npm:errno@0.1.4": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2",
"prr": "npm:prr@0.0.0"
},
"npm:es3ify@0.1.4": {
"esprima-fb": "npm:esprima-fb@3001.1.0-dev-harmony-fb",
"jstransform": "npm:jstransform@3.0.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"through": "npm:through@2.3.8"
},
"npm:esprima-fb@15001.1001.0-dev-harmony-fb": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:esprima-fb@3001.1.0-dev-harmony-fb": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:evp_bytestokey@1.0.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"create-hash": "npm:create-hash@1.1.2",
"crypto": "github:jspm/nodelibs-crypto@0.1.0"
},
"npm:falafel@1.2.0": {
"acorn": "npm:acorn@1.2.2",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"foreach": "npm:foreach@2.0.5",
"isarray": "npm:isarray@0.0.1",
"object-keys": "npm:object-keys@1.0.9"
},
"npm:fruitdown@1.0.1": {
"abstract-leveldown": "npm:abstract-leveldown@0.12.3",
"argsarray": "npm:argsarray@0.0.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"d64": "npm:d64@1.0.0",
"inherits": "npm:inherits@2.0.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"tiny-queue": "npm:tiny-queue@0.2.0"
},
"npm:hash.js@1.0.3": {
"inherits": "npm:inherits@2.0.1"
},
"npm:idb-wrapper@1.6.0": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:immediate@3.0.5": {
"inline-process-browser": "npm:inline-process-browser@1.0.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"unreachable-branch-transform": "npm:unreachable-branch-transform@0.3.0"
},
"npm:inherits@2.0.1": {
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:inline-process-browser@1.0.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"falafel": "npm:falafel@1.2.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"through2": "npm:through2@0.6.5"
},
"npm:isbuffer@0.0.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:jstransform@3.0.0": {
"base62": "npm:base62@0.1.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"esprima-fb": "npm:esprima-fb@3001.1.0-dev-harmony-fb",
"process": "github:jspm/nodelibs-process@0.1.2",
"source-map": "npm:source-map@0.1.31"
},
"npm:level-codec@6.0.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:level-errors@1.0.4": {
"errno": "npm:errno@0.1.4"
},
"npm:level-iterator-stream@1.3.1": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"inherits": "npm:inherits@2.0.1",
"level-errors": "npm:level-errors@1.0.4",
"readable-stream": "npm:readable-stream@1.0.33",
"xtend": "npm:xtend@4.0.0"
},
"npm:level-js@2.2.2": {
"abstract-leveldown": "npm:abstract-leveldown@0.12.3",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"idb-wrapper": "npm:idb-wrapper@1.6.0",
"isbuffer": "npm:isbuffer@0.0.0",
"ltgt": "npm:ltgt@1.0.2",
"typedarray-to-buffer": "npm:typedarray-to-buffer@1.0.4",
"util": "github:jspm/nodelibs-util@0.1.0",
"xtend": "npm:xtend@2.1.2"
},
"npm:level-sublevel@6.5.2": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"bytewise": "npm:bytewise@0.7.1",
"events": "github:jspm/nodelibs-events@0.1.1",
"levelup": "npm:levelup@0.19.0",
"ltgt": "npm:ltgt@2.1.2",
"process": "github:jspm/nodelibs-process@0.1.2",
"pull-stream": "npm:pull-stream@2.21.0",
"systemjs-json": "github:systemjs/plugin-json@0.1.0",
"typewiselite": "npm:typewiselite@1.0.0",
"xtend": "npm:xtend@4.0.0"
},
"npm:level-write-stream@1.0.0": {
"end-stream": "npm:end-stream@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:levelup@0.19.0": {
"bl": "npm:bl@0.8.2",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"deferred-leveldown": "npm:deferred-leveldown@0.2.0",
"errno": "npm:errno@0.1.4",
"events": "github:jspm/nodelibs-events@0.1.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"prr": "npm:prr@0.0.0",
"readable-stream": "npm:readable-stream@1.0.33",
"stream": "github:jspm/nodelibs-stream@0.1.0",
"systemjs-json": "github:systemjs/plugin-json@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0",
"xtend": "npm:xtend@3.0.0"
},
"npm:levelup@1.2.1": {
"deferred-leveldown": "npm:deferred-leveldown@1.0.0",
"events": "github:jspm/nodelibs-events@0.1.1",
"level-codec": "npm:level-codec@6.0.0",
"level-errors": "npm:level-errors@1.0.4",
"level-iterator-stream": "npm:level-iterator-stream@1.3.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"prr": "npm:prr@1.0.1",
"systemjs-json": "github:systemjs/plugin-json@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0",
"xtend": "npm:xtend@4.0.0"
},
"npm:lie@3.0.0": {
"es3ify": "npm:es3ify@0.1.4",
"immediate": "npm:immediate@3.0.5",
"inline-process-browser": "npm:inline-process-browser@1.0.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"unreachable-branch-transform": "npm:unreachable-branch-transform@0.2.3"
},
"npm:localstorage-down@0.6.3": {
"abstract-leveldown": "npm:abstract-leveldown@0.12.3",
"argsarray": "npm:argsarray@0.0.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"d64": "npm:d64@1.0.0",
"inherits": "npm:inherits@2.0.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"tiny-queue": "npm:tiny-queue@0.2.0"
},
"npm:ltgt@1.0.2": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:ltgt@2.1.2": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:memdown@1.1.0": {
"abstract-leveldown": "npm:abstract-leveldown@2.1.4",
"assert": "github:jspm/nodelibs-assert@0.1.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"functional-red-black-tree": "npm:functional-red-black-tree@1.0.1",
"inherits": "npm:inherits@2.0.1",
"ltgt": "npm:ltgt@1.0.2",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:miller-rabin@2.0.1": {
"bn.js": "npm:bn.js@2.2.0",
"brorand": "npm:brorand@1.0.5"
},
"npm:os-browserify@0.1.2": {
"os": "github:jspm/nodelibs-os@0.1.0"
},
"npm:parse-asn1@3.0.2": {
"asn1.js": "npm:asn1.js@2.2.1",
"browserify-aes": "npm:browserify-aes@1.0.5",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"create-hash": "npm:create-hash@1.1.2",
"evp_bytestokey": "npm:evp_bytestokey@1.0.0",
"pbkdf2": "npm:pbkdf2@3.0.4",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:path-browserify@0.0.0": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:pbkdf2@3.0.4": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"child_process": "github:jspm/nodelibs-child_process@0.1.0",
"create-hmac": "npm:create-hmac@1.1.4",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
"systemjs-json": "github:systemjs/plugin-json@0.1.0"
},
"npm:pouchdb@5.0.0": {
"argsarray": "npm:argsarray@0.0.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"debug": "npm:debug@2.2.0",
"double-ended-queue": "npm:double-ended-queue@2.0.0-0",
"es3ify": "npm:es3ify@0.1.4",
"events": "github:jspm/nodelibs-events@0.1.1",
"fruitdown": "npm:fruitdown@1.0.1",
"inherits": "npm:inherits@2.0.1",
"level-js": "npm:level-js@2.2.2",
"level-sublevel": "npm:level-sublevel@6.5.2",
"level-write-stream": "npm:level-write-stream@1.0.0",
"levelup": "npm:levelup@1.2.1",
"lie": "npm:lie@3.0.0",
"localstorage-down": "npm:localstorage-down@0.6.3",
"memdown": "npm:memdown@1.1.0",
"path": "github:jspm/nodelibs-path@0.1.0",
"pouchdb-collate": "npm:pouchdb-collate@1.2.0",
"pouchdb-collections": "npm:pouchdb-collections@1.0.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"querystring": "github:jspm/nodelibs-querystring@0.1.0",
"spark-md5": "npm:spark-md5@0.0.5",
"systemjs-json": "github:systemjs/plugin-json@0.1.0",
"through2": "npm:through2@2.0.0",
"vuvuzela": "npm:vuvuzela@1.0.1"
},
"npm:process-nextick-args@1.0.3": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:process@0.11.2": {
"assert": "github:jspm/nodelibs-assert@0.1.0"
},
"npm:public-encrypt@2.0.1": {
"bn.js": "npm:bn.js@2.2.0",
"browserify-rsa": "npm:browserify-rsa@2.0.1",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"create-hash": "npm:create-hash@1.1.2",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"parse-asn1": "npm:parse-asn1@3.0.2",
"randombytes": "npm:randombytes@2.0.1"
},
"npm:pull-stream@2.21.0": {
"process": "github:jspm/nodelibs-process@0.1.2",
"pull-core": "npm:pull-core@1.0.0"
},
"npm:punycode@1.3.2": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:randombytes@2.0.1": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"crypto": "github:jspm/nodelibs-crypto@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:readable-stream@0.0.4": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"process": "github:jspm/nodelibs-process@0.1.2",
"stream": "github:jspm/nodelibs-stream@0.1.0",
"string_decoder": "github:jspm/nodelibs-string_decoder@0.1.0",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:readable-stream@1.0.33": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"core-util-is": "npm:core-util-is@1.0.1",
"events": "github:jspm/nodelibs-events@0.1.1",
"inherits": "npm:inherits@2.0.1",
"isarray": "npm:isarray@0.0.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"stream-browserify": "npm:stream-browserify@1.0.0",
"string_decoder": "npm:string_decoder@0.10.31"
},
"npm:readable-stream@2.0.2": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"core-util-is": "npm:core-util-is@1.0.1",
"events": "github:jspm/nodelibs-events@0.1.1",
"inherits": "npm:inherits@2.0.1",
"isarray": "npm:isarray@0.0.1",
"process": "github:jspm/nodelibs-process@0.1.2",
"process-nextick-args": "npm:process-nextick-args@1.0.3",
"string_decoder": "npm:string_decoder@0.10.31",
"util-deprecate": "npm:util-deprecate@1.0.2"
},
"npm:recast@0.10.33": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"ast-types": "npm:ast-types@0.8.12",
"esprima-fb": "npm:esprima-fb@15001.1001.0-dev-harmony-fb",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"os": "github:jspm/nodelibs-os@0.1.0",
"private": "npm:private@0.1.6",
"process": "github:jspm/nodelibs-process@0.1.2",
"source-map": "npm:source-map@0.5.1"
},
"npm:ripemd160@1.0.1": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:sha.js@2.4.4": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"inherits": "npm:inherits@2.0.1",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:source-map@0.1.31": {
"amdefine": "npm:amdefine@1.0.0",
"fs": "github:jspm/nodelibs-fs@0.1.2",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:source-map@0.5.1": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:stream-browserify@1.0.0": {
"events": "github:jspm/nodelibs-events@0.1.1",
"inherits": "npm:inherits@2.0.1",
"readable-stream": "npm:readable-stream@1.0.33"
},
"npm:string_decoder@0.10.31": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:through2@0.6.5": {
"process": "github:jspm/nodelibs-process@0.1.2",
"readable-stream": "npm:readable-stream@1.0.33",
"util": "github:jspm/nodelibs-util@0.1.0",
"xtend": "npm:xtend@4.0.0"
},
"npm:through2@2.0.0": {
"process": "github:jspm/nodelibs-process@0.1.2",
"readable-stream": "npm:readable-stream@2.0.2",
"util": "github:jspm/nodelibs-util@0.1.0",
"xtend": "npm:xtend@4.0.0"
},
"npm:through@2.3.8": {
"process": "github:jspm/nodelibs-process@0.1.2",
"stream": "github:jspm/nodelibs-stream@0.1.0"
},
"npm:timers-browserify@1.4.1": {
"process": "npm:process@0.11.2"
},
"npm:to-utf8@0.0.1": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:typedarray-to-buffer@1.0.4": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:typewiselite@1.0.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0"
},
"npm:unreachable-branch-transform@0.2.3": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"esmangle-evaluator": "npm:esmangle-evaluator@1.0.0",
"recast": "npm:recast@0.10.33",
"through2": "npm:through2@0.6.5"
},
"npm:unreachable-branch-transform@0.3.0": {
"buffer": "github:jspm/nodelibs-buffer@0.1.0",
"esmangle-evaluator": "npm:esmangle-evaluator@1.0.0",
"recast": "npm:recast@0.10.33",
"through2": "npm:through2@0.6.5"
},
"npm:url@0.10.3": {
"assert": "github:jspm/nodelibs-assert@0.1.0",
"punycode": "npm:punycode@1.3.2",
"querystring": "npm:querystring@0.2.0",
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:util-deprecate@1.0.2": {
"util": "github:jspm/nodelibs-util@0.1.0"
},
"npm:util@0.10.3": {
"inherits": "npm:inherits@2.0.1",
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:vm-browserify@0.0.4": {
"indexof": "npm:indexof@0.0.1"
},
"npm:write-stream@0.4.3": {
"readable-stream": "npm:readable-stream@0.0.4",
"stream": "github:jspm/nodelibs-stream@0.1.0"
},
"npm:xtend@2.1.2": {
"object-keys": "npm:object-keys@0.4.0"
}
}
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>pouchdb test</title>
</head>
<body>
<h1>pouchdb test</h1>
<script src="jspm_packages/system.js"></script>
<script src="config.js"></script>
<script>
System.import('main.js');
</script>
</body>
</html>
import PouchDB from 'pouchdb';
var db = new PouchDB('dbname');
db.put({
_id: 'dave@gmail.com',
name: 'David',
age: 68
});
db.changes().on('change', function(change) {
console.log('Ch-Ch-Changes', change);
});
console.log('my-db', db);
{
"jspm": {
"dependencies": {
"pouchdb": "npm:pouchdb@^5.0.0"
},
"devDependencies": {
"traceur": "github:jmcriffey/bower-traceur@0.0.91",
"traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.91"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment