A Node.js wrapper for the InterFAX REST API for sending and receiving faxes. This library, version 0.8.4, supports both promises and callbacks, and allows sending faxes via file paths or URLs. It is transpiled to ES5 for backward compatibility and works with Node 4+. Key differentiators include simple setup with environment variables or direct credentials, support for over 20 file types, and access to account balance and fax management endpoints.
npm install interfaxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sends a fax using a local PDF file and logs the fax ID or error.
Use new InterFAX({ username: '...', password: '...' }) or set environment variables.Use promise-based API (.then/.catch or async/await) instead of callbacks.
Always provide username and password either via options or environment variables INTERFAX_USERNAME and INTERFAX_PASSWORD.
Use 'faxNumber' as the key for the destination fax number.
Use path.resolve(__dirname, 'folder/fax.pdf') or provide a URL.
Use interfax.outbound.deliver(options) instead of interfax.deliver(options).
Ensure the options object includes a 'faxNumber' property with a valid international fax number.
Verify credentials or set INTERFAX_USERNAME and INTERFAX_PASSWORD environment variables.
No dependency data recorded yet.