Skip to content

A javascript library to convert Outlook *.msg files to *.eml

License

Notifications You must be signed in to change notification settings

master131/msg2eml.js

Repository files navigation

msg2eml.js

A javascript library to convert Outlook *.msg files to *.eml natively in the browser.

Demo

Try it out here.

Installation & Building

Make sure you have Typescript installed globally (or adjust the package.json accordingly).

npm install

npm run build

lib/dist/msg2eml.bundle.js (non-minified) and lib/dist/msg2eml.min.js (minified) will be generated.

This 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.

API

This adds a function called msg2eml into the global window object.

Function Name Parameters Returns Description
msg2eml Blob/Array/ArrayBuffer containing the contents of the .msg file Promise - a promise which will generate the string content of the .eml file Converts a .msg to .eml

See the demo directory for an example of this in-use.

It can also be used as per below outside a browser:

var msg2eml = require('./msg2eml.bundle');

Thanks

This 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:

About

A javascript library to convert Outlook *.msg files to *.eml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published