sheet_to_txt written but not in utils #905

Closed
opened 2017-11-26 19:18:27 +00:00 by aj4mq · 1 comment
aj4mq commented 2017-11-26 19:18:27 +00:00 (Migrated from github.com)

Been having troubles with the sheet_to_json, but I noticed there was a sheet_to_txt designed, but not in the utils. added in my copy, works perfect for my needs.

If this could be fixed in the online copy, would be cool.

Great package.

Been having troubles with the sheet_to_json, but I noticed there was a sheet_to_txt designed, but not in the utils. added in my copy, works perfect for my needs. If this could be fixed in the online copy, would be cool. Great package.
SheetJSDev commented 2017-11-26 21:27:57 +00:00 (Migrated from github.com)

It could be useful to expose, but there are likely other ways to do what you want. If you just want a tab-delimited rendering, you can pass the FS:"\t" option to sheet_to_csv. If you want the full behavior, including the codepage conversion, we will accept a PR that adds the export line in the utils definition

N.B.: sheet_to_txt is directly exposed in the generic write and writeFile functions using the bookType:"txt" option. The specific sheet is controlled by the sheet parameter.

It could be useful to expose, but there are likely other ways to do what you want. If you just want a tab-delimited rendering, you can pass the [`FS:"\t"` option to `sheet_to_csv`](https://docs.sheetjs.com/#delimiter-separated-output). If you want the full behavior, including the codepage conversion, we will accept a PR that adds the export line in the [`utils` definition](https://github.com/SheetJS/js-xlsx/blob/master/bits/90_utils.js#L202) N.B.: `sheet_to_txt` is directly exposed in the generic `write` and `writeFile` functions using the [`bookType:"txt"` option](https://docs.sheetjs.com/#writing-options). The specific sheet is controlled by the `sheet` parameter.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#905
No description provided.