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
npm install cycle-pouchdb-most-driver
Typescript
Module System
Node Version
NPM Version
60.3
Supply Chain
80.7
Quality
74.4
Maintenance
100
Vulnerability
99.5
License
JavaScript (100%)
Total Downloads
2,766
Last Day
5
Last Week
8
Last Month
19
Last Year
143
2 Stars
11 Commits
3 Watching
1 Branches
1 Contributors
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%
5
Compared to previous day
Last week
700%
8
Compared to previous week
Last month
280%
19
Compared to previous month
Last year
-17.3%
143
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
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-12-16
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