{"id":16683446,"url":"https://github.com/master131/msg2eml.js","last_synced_at":"2025-03-21T18:32:49.986Z","repository":{"id":47009276,"uuid":"310952894","full_name":"master131/msg2eml.js","owner":"master131","description":"A javascript library to convert Outlook *.msg files to *.eml","archived":false,"fork":false,"pushed_at":"2024-06-27T05:48:26.000Z","size":1962,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T03:51:26.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/master131.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-07T23:48:42.000Z","updated_at":"2025-03-13T03:11:58.000Z","dependencies_parsed_at":"2024-10-28T11:29:17.830Z","dependency_job_id":"1e29e2ca-b7d3-4ada-8ef2-6037d7089148","html_url":"https://github.com/master131/msg2eml.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master131%2Fmsg2eml.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master131%2Fmsg2eml.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master131%2Fmsg2eml.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/master131%2Fmsg2eml.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/master131","download_url":"https://codeload.github.com/master131/msg2eml.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849089,"owners_count":20520638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T14:24:40.525Z","updated_at":"2025-03-21T18:32:49.547Z","avatar_url":"https://github.com/master131.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# msg2eml.js\r\nA javascript library to convert Outlook *.msg files to *.eml natively in the browser.\r\n\r\n## Demo\r\nTry it out [here](https://master131.github.io/msg2eml.js/demo/index.html).\r\n\r\n## Installation \u0026 Building\r\nMake sure you have Typescript installed globally (or adjust the package.json accordingly).\r\n\r\n``npm install``\r\n\r\n``npm run build``\r\n\r\nlib/dist/msg2eml.bundle.js (non-minified) and lib/dist/msg2eml.min.js (minified) will be generated.\r\n\r\nThis library can function in IE11 given the correct polyfills are present (see the demo) and the \"use strict\"/'use strict' keywords have been stripped from the msg2eml.js library.\r\n\r\n## API\r\nThis adds a function called msg2eml into the global window object.\r\n\r\n| Function Name  | Parameters                                                    | Returns                                                                             | Description             |\r\n|----------------|---------------------------------------------------------------|-------------------------------------------------------------------------------------|-------------------------|\r\n| msg2eml | Blob/Array/ArrayBuffer containing the contents of the .msg file | Promise\u003cstring\u003e - a promise which will generate the string content of the .eml file | Converts a .msg to .eml |\r\n\r\nSee the demo directory for an example of this in-use.\r\n\r\nIt can also be used as per below outside a browser:\r\n\r\n``var msg2eml = require('./msg2eml.bundle');``\r\n\r\n## Thanks\r\nThis would not be possible without all the hard work of the people who wrote a lot of the underlying libraries which msg2eml.js depends on:\r\n- https://github.com/JoshData/convert-outlook-msg-file\r\n- https://github.com/mazira/rtf-stream-parser\r\n- https://github.com/SheetJS/js-cfb\r\n- https://github.com/papnkukn/eml-format\r\n- https://github.com/HiraokaHyperTools/DeCompressRTF\r\n- https://github.com/moment/moment\r\n- https://github.com/peterolson/BigInteger.js\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaster131%2Fmsg2eml.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaster131%2Fmsg2eml.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaster131%2Fmsg2eml.js/lists"}