Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const file = 'https://docs.google.com/spreadsheets/d/1YDBW6jIn4jCgXg7V7g6d3dSmIzDIFqGmsgRSnnXkUbI/export?format=xlsx&id=1YDBW6jIn4jCgXg7V7g6d3dSmIzDIFqGmsgRSnnXkUbI'
- const fs = require('fs');
- const download = require('download');
- download(file, 'dist')
- .then(() => {
- console.log('done!');
- node_xj = require("xls-to-json");
- node_xj({
- input: "./dist/localization.xlsx", // input xls
- output: "output.json", // output json
- sheet: "List 1", // specific sheetname
- rowsToSkip: 0 // number of rows to skip at the top of the sheet; defaults to 0
- }, function (err, result) {
- if (err) {
- console.error(err);
- } else {
- console.log(result);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement