Gathering detailed insights and metrics for cycle-pouchdb-most-driver
Gathering detailed insights and metrics for cycle-pouchdb-most-driver
Gathering detailed insights and metrics for cycle-pouchdb-most-driver
Gathering detailed insights and metrics for cycle-pouchdb-most-driver
A PouchDB driver that returns easy streams to be used with Cycle's most-run
npm install cycle-pouchdb-most-driver
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
11 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Jul 08, 2019
Latest Version
0.0.5
Package Id
cycle-pouchdb-most-driver@0.0.5
Size
2.14 kB
NPM Version
3.8.3
Node Version
5.10.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
4
This is a driver for all your pure-most Cycle apps (think Motorcycle) that speak with PouchDB.
It returns streams from .get
, .query
and .changes
methods for easy read access to PouchDB data, and accepts .put
and .remove
operations for write.
npm install --save cycle-pouchdb-most-driver
1import most from 'most' 2import PouchDB from 'pouchdb-browser' 3import {makeDOMDriver} from '@motorcycle/dom' 4import {makePouchDBDriver} from 'cycle-pouchdb-most-driver' 5import Cycle from '@cycle/most-run' 6 7Cycle.run(app, { 8 DOM: makeDOMDriver('#container'), 9 POUCHDB: makePouchDBDriver(PouchDB, 'my-db-name') 10}) 11 12function app ({DOM, POUCHDB}) { 13 let vtree$ = POUCHDB 14 .query('my-ddoc/items-by-time', {descending: true, startkey: [{}], endkey: [null], include_docs: true}) 15 .map(res => res.rows.map(r => r.doc)) 16 .map(items => 17 h('ul', items.map(item => 18 h('li', {props: {id: item._id}}, item.name) 19 )) 20 ) 21 22 return { 23 DOM: vtree$, 24 POUCHDB: most.from([ 25 POUCHDB.put({ 26 '_id': '_design/my-ddoc', 27 'views': { 28 'items-by-time': { 29 'map': ` 30 function (doc) { 31 if (doc.type == 'item') { 32 emit([doc.year, doc.month, doc.day, doc.time], doc.value) 33 } 34 } 35 ` 36 } 37 } 38 }), 39 POUCHDB.put({_id: 'xyz', name: 'lalala', year: 2018, month: 2, day: 21, time: '14:44:23'}) 40 POUCHDB.put({_id: 'uyt', name: 'lololo', year: 2018, month: 2, day: 22, time: '10:01:36'}) 41 ]) 42 } 43}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More