2.0.1 • Published 8 years ago

chesterfield v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Chesterfield

npm version Build Status Coverage Status

Chesterfield is wrapper for the Node JS Couchbase SDK for writing Functional Javascript.

Installation

npm install chesterfield --save

Running Tests

git clone https://github.com/binaryalchemist/chesterfield.git
cd chesterfield
npm test

Example

var cb = require('chesterfield');

var cluster = cb.cluster('couchbase://address2couchbase');
var bucket = cb.open(cluster, 'bucket_name', 'password');

var popeMobile = {
    id: 9000,
    type: 'miracle whip'
};

var popeMobileKey = 'vehicle_' + popeMobile.id;

cb.upsert(bucket, popeMobileKey, popeMobile, function(error, result) {
    cb.get(bucket, popeMobileKey, function(error, result) {
        console.log(JSON.stringify(result.value));
    });
});

Contributing

Please see CONTRIBUTING.md for more details on contributing to the repository.

2.0.1

8 years ago

2.0.0

9 years ago

1.1.7

10 years ago

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

0.1.0

10 years ago