xray(object, scanner) returns an array of JSONPaths to (nested) object values that are matched by the scanner
someObj =propA: 1propB: "find me"propC:propA: "find me"propB:"can you" "find me" "too"propC:tooDeep:propA: "hello... can you find me""propD-find me": "OK";// Scan the object with a string:paths =;// paths === ["$.propB", "$.propC.propA", "$.propC['propD-find me']"]// Or, with a RegExp object:paths =// Or, with a custom function that indicates a match by returning a truthy value:paths =;
var xray = require('xray')vs.
var xray = require('xray').xray)
propertiesargument to custom scanner callback