Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
onesecmail-prout
Advanced tools
Create and receive email in only 1 second.
Warning: This package is native ES modules and does not provide a CommonJS export. If your project uses CommonJS, you will have to convert to ESM or use the dynamic import() function.
Using npm:
npm install onesecmail
Using yarn:
yarn add onesecmail
Using pnpm:
pnpm add onesecmail
Once the package is installed, you can import the library using import
:
import { OneSecMail, OneSecMailAPI } from "onesecmail";
Options can be passed to constructor and all methods.
// default options
const options: Partial<Options> = {
retry: 2, // max retry failed request
timeout: 10_000, // milliseconds
};
This class is an exact reproduction of the official 1secmail.com API.
const onesecmailApi = new OneSecMailAPI();
const onesecmailApi = new OneSecMailAPI(options);
All methods return a Promise.
count
must be between 1 and 500
const emailAddresses = await onesecmailApi.genRandomMailbox(); // same: genRandomMailbox(1)
const emailAddresses = await onesecmailApi.genRandomMailbox(5);
const emailAddresses = await onesecmailApi.genRandomMailbox(options); // same: genRandomMailbox(1, options)
const emailAddresses = await onesecmailApi.genRandomMailbox(5, options);
const domainList = await onesecmailApi.getDomainList();
const domainList = await onesecmailApi.getDomainList(options);
const messages = await onesecmailApi.getMessages("demo", "1secmail.com");
const messages = await onesecmailApi.getMessages("demo", "1secmail.com", options);
const message = await onesecmailApi.readMessage("demo", "1secmail.com", 1337);
const message = await onesecmailApi.readMessage("demo", "1secmail.com", 1337, options);
Returns null if message do not exists.
const file = await onesecmailApi.download("demo", "1secmail.com", 1337, "file.pdf");
const file = await onesecmailApi.download("demo", "1secmail.com", 1337, "file.pdf", options);
Returns null if file do not exists.
FAQs
Create and receive email in only 1 second.
The npm package onesecmail-prout receives a total of 0 weekly downloads. As such, onesecmail-prout popularity was classified as not popular.
We found that onesecmail-prout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.