Format WKID spatial reference variations into a standard structure.
npm install format-spatial-ref
var formatSpatialRef = require('format-spatial-ref')
formatSpatialRef({"wkid": 4326})
formatSpatialRef('{"wkid": 4326}')
formatSpatialRef(4326)
// All of the above will return { "wkid": 4326 }
Contributions welcome! Please read the contributing guidelines first.