xy-diff Find the x/y difference between a pair of coordinates Install $ npm install --save xy-diff Usage var xyDiff = require('xy-diff') xyDiff({x: 0, y: 10}, {x: 10, y: 100}) //=> {x: 10, y: 90} API xyDiff(coord1, coord2) -> object coord1 / coord2 Required Type: object A set of x/y number pairs. License MIT © Ben Drucker