<commit_before># Aerospike Client for node.js

The Aerospike client for node.js is an add-on module, written in C++. 


## Building

The add-on module is built using [node-gyp](https://github.com/TooTallNate/node-gyp). 

To build:

	node-gyp rebuild



## Usage
	
	var aerospike = require('aerospike')
	var key = aerospike.key
	
	var client = aerospike.connect({
		hosts: [
			{ addr: "127.0.0.1", port: 3000 }
		]
	})
	
	client.get(["test", "demo", "a"], function(err, rec) {
	  //
	})
<commit_msg>improved README.md<commit_after># Aerospike Client for node.js

The Aerospike client for node.js is an add-on module, written in C++. 


## Building

The add-on module is built using [node-gyp](https://github.com/TooTallNate/node-gyp). 

To build:

	node-gyp rebuild



## Usage
	
	var aerospike = require('aerospike')
	var key = aerospike.key
	
	var client = aerospike.connect({
		hosts: [
			{ addr: "127.0.0.1", port: 3000 }
		]
	})
	
	var bins = {
		a: 123,
		b: "xyz"
	}

	client.put(["test", "demo", "a"], bins, function(err, bins, meta, key) {
	  // handle the response
	})
	
	client.get(["test", "demo", "b"], function(err, bins, meta, key) {
	  // hanlde the response
	})

{'fraction_non_alphanumeric': 0.16186440677966102, 'fraction_numerical': 0.019491525423728815, 'mean_word_length': 3.158450704225352, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4833364', 'n_tokens_mistral': 523, 'n_tokens_neox': 437, 'n_words': 121}