{"action":"created","issue":{"url":"https://api.github.com/repos/DiegoZoracKy/convert-excel-to-json/issues/10","repository_url":"https://api.github.com/repos/DiegoZoracKy/convert-excel-to-json","labels_url":"https://api.github.com/repos/DiegoZoracKy/convert-excel-to-json/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/DiegoZoracKy/convert-excel-to-json/issues/10/comments","events_url":"https://api.github.com/repos/DiegoZoracKy/convert-excel-to-json/issues/10/events","html_url":"https://github.com/DiegoZoracKy/convert-excel-to-json/issues/10","id":339528230,"node_id":"MDU6SXNzdWUzMzk1MjgyMzA=","number":10,"title":"Write to a file","user":{"login":"naresh217","id":5828286,"node_id":"MDQ6VXNlcjU4MjgyODY=","avatar_url":"https://avatars2.githubusercontent.com/u/5828286?v=4","gravatar_id":"","url":"https://api.github.com/users/naresh217","html_url":"https://github.com/naresh217","followers_url":"https://api.github.com/users/naresh217/followers","following_url":"https://api.github.com/users/naresh217/following{/other_user}","gists_url":"https://api.github.com/users/naresh217/gists{/gist_id}","starred_url":"https://api.github.com/users/naresh217/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naresh217/subscriptions","organizations_url":"https://api.github.com/users/naresh217/orgs","repos_url":"https://api.github.com/users/naresh217/repos","events_url":"https://api.github.com/users/naresh217/events{/privacy}","received_events_url":"https://api.github.com/users/naresh217/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-09T16:50:20Z","updated_at":"2018-07-09T17:31:00Z","closed_at":null,"author_association":"NONE","body":"Do you have any option to write to a file while using CLI.\r\n\r\nI tried to use it in my angular project using but it throws an error\r\n`'use strict';\r\nconst excelToJson = require('convert-excel-to-json');\r\n\r\nconst result = excelToJson({\r\n\tsourceFile: 'SOME-EXCEL-FILE.xlsx'\r\n});`\r\n![image](https://user-images.githubusercontent.com/5828286/42464287-9ca0f4f8-8376-11e8-96e1-9c72b1143080.png)\r\n"},"comment":{"url":"https://api.github.com/repos/DiegoZoracKy/convert-excel-to-json/issues/comments/403557780","html_url":"https://github.com/DiegoZoracKy/convert-excel-to-json/issues/10#issuecomment-403557780","issue_url":"https://api.github.com/repos/DiegoZoracKy/convert-excel-to-json/issues/10","id":403557780,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzU1Nzc4MA==","user":{"login":"DiegoZoracKy","id":2091071,"node_id":"MDQ6VXNlcjIwOTEwNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/2091071?v=4","gravatar_id":"","url":"https://api.github.com/users/DiegoZoracKy","html_url":"https://github.com/DiegoZoracKy","followers_url":"https://api.github.com/users/DiegoZoracKy/followers","following_url":"https://api.github.com/users/DiegoZoracKy/following{/other_user}","gists_url":"https://api.github.com/users/DiegoZoracKy/gists{/gist_id}","starred_url":"https://api.github.com/users/DiegoZoracKy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiegoZoracKy/subscriptions","organizations_url":"https://api.github.com/users/DiegoZoracKy/orgs","repos_url":"https://api.github.com/users/DiegoZoracKy/repos","events_url":"https://api.github.com/users/DiegoZoracKy/events{/privacy}","received_events_url":"https://api.github.com/users/DiegoZoracKy/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T17:31:00Z","updated_at":"2018-07-09T17:31:00Z","author_association":"OWNER","body":"@naresh217 no, at first, because when using via CLI we can easily use Redirection `>` to write a file containing the output data.\r\n\r\nExample: \r\n\r\n`$ convert-excel-to-json --config='{\"sourceFile\": \"tests/test-data.xlsx\", \"outputJSON\": true}' > output-file.json`\r\n\r\nSorry about the first answer. I was walking on the street and ended up focusing on the browser error. "}}
{"actor":{"display_login":"DiegoZoracKy"}}