This will require some reworking of the formats to support reading explicitly from a file, though, since reading a Shapefile's .dbf metadata requires knowing the path of the file. Perhaps formats could expose a .readFile(filename, options) method in this case, and cli.js would check?
The shapefile-stream module should work well.
This will require some reworking of the formats to support reading explicitly from a file, though, since reading a Shapefile's
.dbf
metadata requires knowing the path of the file. Perhaps formats could expose a.readFile(filename, options)
method in this case, andcli.js
would check?