<commit_before># node-dogecoin

node-dogecoin is a Dogecoin client for Node.JS. It is a fork of the excellent git://github.com/Weltschmerz/Kapitalize.git intended for use with Dogecoin. It's currently very nearly identical to Kaptialize, which can be used for Dogecoin too. The purpose of this repository is primarily:

* Provide a one-stop resource for Node.JS developer to get started with Dogecoin integration.
* Prevent would-be Dogecoin web developers worrying whether the Bitcoin client will work out of the box.
* Promote Node.JS development of Dogecoin web apps.
* Identify and address any incompatibilities with the Dogecoin and Bitcoin APIs that exist now and/or in the future.

`npm install dogecoin`

## Example

```js
var dogecoin = require('dogecoin')()

dogecoin.auth('<NAME>', '<PASSWORD>')

dogecoin.getNewAddress(function(err, address) {
    dogecoin.validateAddress(address, console.log)
})

```

## Chaining

Pretty much everything is chainable.

```js
var dogecoin = require('dogecoin')()

dogecoin
.auth('MyUserName', '<PASSWORD>')
.set('host', '127.0.0.1')
.set({
    port:22555
})
.getNewAddress()
.getBalance()
```

## Methods

TODO: Verify and test with Dogecoin.<commit_msg>readme help<commit_after># A Node.JS DogeCoin Client!

![DogeCoin](http://static.tumblr.com/ppdj5y9/Ae9mxmxtp/300coin.png)

node-dogecoin is a Dogecoin client for Node.JS. It is a fork of the excellent git://github.com/Weltschmerz/Kapitalize.git intended for use with Dogecoin. It's currently very nearly identical to Kaptialize, which can be used for Dogecoin too. The purpose of this repository is primarily:

* Provide a one-stop resource for Node.JS developer to get started with Dogecoin integration.
* Prevent would-be Dogecoin web developers worrying whether the Bitcoin client will work out of the box.
* Promote Node.JS development of Dogecoin web apps.
* Identify and address any incompatibilities with the Dogecoin and Bitcoin APIs that exist now and/or in the future.

## Dependencies

You'll need a running instance of dogecoind to connect with. If you're running Debian/Ubuntu, this worked for me: http://www.dogeco.in/wiki/index.php/Dogecoind

Then, install the dogecoin NPM package.

`npm install dogecoin`

## Example

```js
var dogecoin = require('dogecoin')()

dogecoin.auth('myusername', '<PASSWORD>')

dogecoin.getDifficulty(function() {
    console.log(arguments);
})

```

## Chaining

Pretty much everything is chainable.

```js
var dogecoin = require('dogecoin')()

dogecoin
.auth('MyUserName', '<PASSWORD>')
.set('host', '127.0.0.1')
.set({
    port:22555
})
.getNewAddress()
.getBalance()
```

## Methods

TODO: Verify and test with Dogecoin.
{'fraction_non_alphanumeric': 0.10711610486891386, 'fraction_numerical': 0.010486891385767791, 'mean_word_length': 4.71948608137045, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5024113', 'n_tokens_mistral': 891, 'n_tokens_neox': 852, 'n_words': 302}