UNPKG

@aspose/email

Version:

A collection of components for working with email. It makes it easy to work with Outlook PST, EML, MSG and MHT files.

16 lines (12 loc) 421 B
"use strict"; const os = require('os'); const fs = require('fs'); const path = require('path'); const platform = os.platform(); const arch = os.arch(); const libPath = path.join(__dirname, `./native/${platform}/${arch}/Aspose.Email.node`); if (!fs.existsSync(libPath)) { throw Error(`Unsupported platform: ${platform}/${arch}`); } const lib = require(libPath); module.exports = lib.Aspose.Email;