jsonstream-paths
Install
npm install jsonstream-paths --save
Example
const sample = type: 'FeatureCollection' features: type: 'Feature' properties: name: 'Downtown' operators: 'Jersey City Department of Innovation' geometry: type: 'Polygon' coordinates: -7405208945274353 4072912064182603 -7405428886413574 4072293316385307 type: 'Feature' properties: name: 'The Heights' operators: 'Jersey City Department of Innovation' geometry: type: 'Polygon' coordinates: -7404601693153381 40750743837352594 -7405118823051453 40743300479884844 type: 'Feature' properties: name: 'Stae Field (Brooklyn)' operators: 'Stae' geometry: type: 'Polygon' coordinates: -739552965760231 4072180496443893 -7395569890737534 4072141872961497 const stream = streamstream/* Results: 'features.*.type', 'features.*.properties.name', 'features.*.properties.operators.*', 'features.*.properties.operators', 'features.*.properties', 'features.*.geometry.type', 'features.*.geometry.coordinates.*.*.*', 'features.*.geometry.coordinates.*.*', 'features.*.geometry.coordinates.*', 'features.*.geometry.coordinates', 'features.*.geometry', 'features.*', '*'*/