-
Notifications
You must be signed in to change notification settings - Fork 954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propose new module (save & read) #562
Comments
👍 This sounds useful, I guess the big question is whether |
Ideally it would be nice to use Potential Issue
|
Note that we had (I'll try to find the issue with the reasoning for why we dropped these) |
Still digging for old tickets / collecting my thoughts on this one for a more cogent explanation (this all happened 4 years ago), but I'll respectfully sum up the devil's advocate opinion with a brief list and an informative link to a similar issue on another project:
|
@morganherlocker Thanks for sharing, After some thoughts and consideration, having a |
Also just noticed Sindresorhus has published two read & write JSON modules. https://www.npmjs.com/package/load-json-file Which could be used for these proposed |
I just used https://github.com/Turfjs/turf/blob/master/packages/turf-truncate/test.js |
I seem to constantly have to write the following functions to read & save GeoJSON files (.geojson).
An easy solution was to change the GeoJSON filename extension to (.json), but there's many times where the data comes in as (.geojson) and I need to write this helper function.
Solution
Create a
FILE SYSTEM
group of functions@turf/file-system
(I dunno... just throwing that out there).For start it would have both
read & save
functions.For people who only need
fs
to read & write GeoJSON this would replacerequire('fs')
for GeoJSON purposes.The text was updated successfully, but these errors were encountered: