Support for Browser API #99
iuccio
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🎉 New Release: Browser API
📝 Summary
This release adds first-class Browser support and a dedicated Browser API so
convert-csv-to-jsoncan be used directly in frontend apps and bundlers. The Browser API provides browser-friendly helpers for parsing CSV strings andFile/Blobobjects and includes TypeScript typings.See the Browser API Usage documentation
✨ Highlights
browserhelper exposing sync and async methods:browser.csvStringToJson(...)browser.csvStringToJsonAsync(...)browser.csvStringToJsonStringified(...)browser.parseFile(file, options)(returnsPromise)index.d.ts.📦 What's new
browserAPI mirrors the library configuration methods (e.g..fieldDelimiter(),.formatValueByType(),.supportQuotedField()).parseFilereadsFile/Blobusing the browserFileReaderAPI and resolves with a parsed array of objects.This discussion was created from the release Support for Browser API.
Beta Was this translation helpful? Give feedback.
All reactions