Catalog npm
Back to packageRELEASE DETAILS

1.1.0

npm

1secmail-api

A Node API for 1secmail.com

1 sec1 sec mail1secmailapiemailmailtemptemp mailtempmailotemporary
Published26 Jun 2023
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

1secmail-api

A NodeJS API for 1secmail.com

Examples and usage

The below example creates an email account at exampleAccount@1secmail.com and fetches emails every 10 seconds.

const { TempMail } = require("1secmail-api");

// Create email account
const mail = new TempMail("exampleAccount");

// Enable auto-fetching full emails
mail.autoFetch();

// Wait until the client is ready
mail.onReady(() => {
  // Should show: exampleAccount@1secmail.com
  console.log("Email ready! Address:", mail.address);

  // Get emails every 10 seconds
  const fetch = () => {
    mail.getMail().then((mails) => {
      console.log(mails);

      mail.deleteMail();
    });
  };

  fetch();
  setInterval(fetch, 10 * 1000);
});

You can also chose different domains by passing an extra argument to the TempMail constructor:

// john@esiix.com
const mail = new TempMail("john", "esiix.com");

To generate random email addresses use mail

mail.getRandomAddress();

To download an attachment use mail.getAttachment(id, file) and pass the email ID and the file name.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-PCbWfpQp4ksJFsRm7Wrf/UR2F21XYyu8oF0mfaVJHEJMyGRHqaBpk0a7ngoBL59tWwUaQA1VytutimENfqPoJQ==",
  "shasum": "390603adf0c08e3cc161af559c2df1649669b941",
  "tarball": "https://registry.npmjs.org/1secmail-api/-/1secmail-api-1.1.0.tgz",
  "fileCount": 4,
  "unpackedSize": 6771,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIEtYYqws3jGeDJLH+HgKTC3Gba/aqRuk3XM2KkZIwNsFAiEAoOdD8LzCg9LWjM7XSnbG1pTtYaOOk67MXyFxrXkJQh0="
    }
  ]
}

Repository

PENDING
lafkpages/1secmail

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:9f76c3a28853c0eced211e211ded59820d613bb6f9ee6a7e7d0aa8b4e7697369

Other collected versions

1.1.126 Jun1.0.326 Jun1.0.226 Jun1.0.114 Apr1.0.014 AprView all collected versions →