Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including format-spatial-ref with all npm packages installed. Try it out:

var formatSpatialRef = require("format-spatial-ref")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

format-spatial-ref v1.1.0

Format WKID spatial reference variations into a standard structure.

format-spatial-ref

Format WKID spatial reference variations into a standard structure.

npm travis

Install

npm install format-spatial-ref

Usage

var formatSpatialRef = require('format-spatial-ref')

formatSpatialRef({"wkid": 4326})
formatSpatialRef('{"wkid": 4326}')
formatSpatialRef(4326)

// All of the above will return { "wkid": 4326 }

Contributing

Contributions welcome! Please read the contributing guidelines first.

License

Apache-2.0

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free