<commit_before>node-geoserver-client
=====================

A client library for interacting with a Geoserver instance <commit_msg>Added installation instructions and API<commit_after>node-geoserver-client
=====================

A client library for interacting with a Geoserver instance 


#Installation

    npm install geoserver-client

#Usage

    var geoserver = require("geoserver-client");

    geoserver.capabilities(err, function(capabilities) {
      if (err) return console.log(err);
      
      console.log(capabilities.WMS_Capabilities.Service.Title)
    });

#API

##wms.capabilities()

Gets the capabilities reported by the WMS as a javascript object


###Example
    
    var wmsUrl = "http://geocarto.igac.gov.co/geoservicios/wms";  
    geoserver.wms.capabilities(wmsUrl, function(err, capabilities) {
      console.log(capabilities):
    });

##wms.layers()

Gets layers reported in the capabilities by the WMS as a javascript array

###Example
    
    var wmsUrl = "http://geocarto.igac.gov.co/geoservicios/wms";  
    geoserver.wms.layers(wmsUrl, function(err, layers) {
      console.log(layers):
    });
{'fraction_non_alphanumeric': 0.13652482269503546, 'fraction_numerical': 0.0, 'mean_word_length': 3.930131004366812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '2029353', 'n_tokens_mistral': 362, 'n_tokens_neox': 348, 'n_words': 82}