Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/todo.txt
!/qodana.yaml
/attachments/
/data/
26 changes: 26 additions & 0 deletions demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'use strict';

const easyYopmail = require('./index.js');

async function main() {
console.log('=== Easy-YOPmail Demo ===\n');

// 1. Generate a random email address
console.log('1. Generating a random email address...');
const email = await easyYopmail.getMail();
console.log(' Generated email:', email);

// 2. Get inbox for the generated email
console.log('\n2. Getting inbox for:', email);
const inbox = await easyYopmail.getInbox(email);
console.log(' Total emails:', inbox.totalEmails);
console.log(' Page count:', inbox.pageCount);
console.log(' Inbox:', inbox.inbox.length > 0 ? inbox.inbox : '(empty inbox)');

console.log('\n=== Demo completed successfully ===');
}

main().catch((err) => {
console.error('Error:', err.message);
process.exit(1);
});
Binary file added img/desktop.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/mobile1.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/mobile2.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/mobile3.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/tab.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading