Skip to content
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

Update idea for README #48

Open
zentek-marco-bruening opened this issue Jul 1, 2019 · 0 comments
Open

Update idea for README #48

zentek-marco-bruening opened this issue Jul 1, 2019 · 0 comments

Comments

@zentek-marco-bruening
Copy link

Hi, I wanted to get the correct binary excel data but without saving it to a file.

const xlsx = json2xls({
    example: "very nice"
});

As your README says, I have to store it as a file:

fs.writeFileSync('data.xlsx', xlsx, 'binary');

I thought that i have to read it back to get its binary data buffer. But I could also use:

const realXlsx = new Buffer(xlsx.toString("binary"), "binary");

It would help other people if you could add that to your README file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant