Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
couchdb-jsonselect
Advanced tools
CSS-like selectors for JSON, which can be used over couch views.
See jsonselect docs for more details on the query
npm i couchdb-jsonselect -g
couchdb-jsonselect http://localhost:5984/databasename
Assume you have a view named ddoc/myview. To select only the .languagesSpoken from each doc, use the following url
http://localhost:5984/databasename/_design/jsonselect/_list/select/ddoc/myview?include_docs=true&select=.languagesSpoken
You can use all the query parameters for the view, eg
http://localhost:5984/databasename/_design/jsonselect/_list/select/ddoc/myview?include_docs=true&select=.languagesSpoken&start_key="a"&end_key="b"
Lets say you have a doc with id abc3092390
. To retrieve part of a doc, such as the .languagesSpoken property, use the following url
http://localhost:5984/databasename/_design/jsonselect/_show/select/abc3092390?select=.languagesSpoken
We can also return ldjson from a view by adding the query parameter ?ldjson=true
eg
http://localhost:5984/databasename/_design/jsonselect/_list/select/ddoc/myview?include_docs=true&select=.languagesSpoken&ldjson=true
FAQs
css selectors for couchdb views
The npm package couchdb-jsonselect receives a total of 5 weekly downloads. As such, couchdb-jsonselect popularity was classified as not popular.
We found that couchdb-jsonselect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.