Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wms-capabilities

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wms-capabilities

WMS service Capabilities > JSON, based on openlayers

  • 0.3.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.6K
decreased by-52.87%
Maintainers
1
Weekly downloads
 
Created
Source

WMS GetCapabilities parser

npm version

Parses WMS capabilities XML format to JSON. This is a simplified excerpt from OpenLayers code to be used separately from its large codebase.

Demo

Usage

Browserify

npm install wms-capabilities --save
var WMSCapabilities = require('wms-capabilities');
...
new WMSCapabilities().parse(xmlString);
//or
new WMSCapabilities(xmlString).toJSON();

Browser

<script src="path/to/wms-capabilities.min.js"></script>
...
new WMSCapabilities().parse(xmlString);

Node

Requires xmldom to traverse XML

$npm install --save xmldom

then

var DOMParser = global.DOMParser = require('xmldom').DOMParser;
var WMSCapabilities = require('wms-capabilities');
...
new WMSCapabilities(xmlString).toJSON();

Command-line

$ npm install -g wms-capabilities
$ cat capabilities.xml | wmscapabilities > out.json
$ # or
$ wmscapabilities capabilities.json > out.json

Keywords

FAQs

Package last updated on 22 Mar 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc