
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@getable/couch
Advanced tools
Stupid simple Couch wrapper based on Request
Table of Contents generated with DocToc
npm install couch
var couch = require('couch')
, c = couch('http://me.iriscouch.com/db')
;
c.post({'msg':'new document'}, function (e, info) {
if (e) throw e
c.post({'msg':'new document', _id:info.id, _rev:info.rev}, function (e, info) {
if (e) throw e
c.get(info.id, function (e, doc) {
if (e) throw e
console.log(doc) // {'msg':'new document', _id:<id>, _rev:<rev>}
})
})
})
c.update('myid', function (doc) {doc.status = 'complete'}, function (e, info) {
if (e) throw e
console.log(info) // {seq:<seq>, id:<id>, rev:<rev>}
})
c.all({keys:['onlykey1', 'onlykey2']}, function (e, results) {
if (e) throw e
console.log(results.rows) // [{id:onlykey1, rev:<rev>}, {id:onlykey2, rev:<rev>}]
})
c.design('app').view('byProperty').query({key:'type', include_docs:true}, function (e, results) {
console.log(results.rows)
})
Tests are in tape.
npm test
will run the testsnpm run tdd
will run the tests on every file change.To publish, run npm run release -- [{patch,minor,major}]
NOTE: you might need to sudo ln -s /usr/local/bin/node /usr/bin/node
to ensure node is in your path for the git hooks to work
npm i -g npm
git push --follow-tags
will work. brew install git
Artistic 2.0 © Mikeal Rogers
v0.7.0 | 2015-05-15
FAQs
Stupid simple Couch wrapper based on Request
We found that @getable/couch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.