Skip to content

Instantly share code, notes, and snippets.

@fxp
Created February 7, 2017 06:48
Show Gist options
  • Save fxp/4325965421230184bbb9c55f48134b72 to your computer and use it in GitHub Desktop.
Save fxp/4325965421230184bbb9c55f48134b72 to your computer and use it in GitHub Desktop.
Error like "RangeError: Invalid string length" "SyntaxError: Unexpected end of JSON input"
If you got error like "RangeError: Invalid string length" "SyntaxError: Unexpected end of JSON input" with npm "json2csv" "json2csv-stream" "write-json-file",
try write-csv instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment